Skip to content

feat(dispatch)!: never cancel the agent run in flight on a work-item update - #7007

Draft
waynesun09 wants to merge 5 commits into
mainfrom
preserve-runs
Draft

waynesun09 wants to merge 5 commits into
mainfrom
preserve-runs

Conversation

@waynesun09

@waynesun09 waynesun09 commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Every stage job in reusable-dispatch.yml now carries cancel-in-progress: false. A newer event on the same issue or pull request no longer cancels the agent already working on it; that run finishes, and the last run to queue waits as the single pending run GitHub keeps per concurrency group, then works from the item's current state. This is the GitHub implementation of ADR 0106, which is Accepted on main and states that the reusable workflows must move to false. No new ADR: the decision is already recorded, so 0106 receives an implementation note instead.

Implements the design recorded in #6957 (closed as completed; this stack ships it).

Run facts. So an agent can tell whether the item moved under it before it writes its result, the runner exports FULLSEND_RUN_HEAD_SHA (the head at run start, empty for an issue) and FULLSEND_RUN_STARTED_AT (RFC 3339 UTC) into the sandbox, after .env.d and env.sandbox so a harness cannot shadow them. The start is the runner's own clock, and the gap it leaves runs one way: a re-check sees a narrower window than the run spans, never a wider one. On GitLab the head falls back to CI_COMMIT_SHA on an ordinary merge request pipeline, gated on CI_MERGE_REQUEST_IID; on the poller-raised pipeline fullsend actually runs it stays empty until the poller passes the source SHA itself. See fullsend run § Run baseline in docs/cli/run.md on this branch.

BREAKING CHANGE: a repository stops cancelling the run in flight as soon as its shim follows a fullsend ref that carries this (the fullsend repository itself on merge, consumers at their next pin bump or scaffold sync), with no opt-out once it does. A run may finish on input the item has moved past and the pending run corrects it; repositories that relied on the newest event superseding an older run will see both run to completion. The pending run is the last to queue, which is normally but not necessarily the newest event, since a stage job queues only after route completes.

What it gives up. ADR 0063 counted per-stage cancellation as a second layer against duplicate poll dispatch. That layer is gone everywhere, leaving the poller's lock and agent idempotency; the duplicate-poll case is where the trade is least favourable, because two duplicate dispatches are the same work rather than a newer state superseding an older one.

Edits to Accepted ADRs on main: ADR 0106 gains an update note under the GitHub Actions paragraph of its Decision naming this PR, the setting and the two run facts. ADR 0063's existing update note gains two sentences on the GitHub trade. Neither Context, Decision nor Consequences is rewritten.

Known, not fixed here: the harness-run concurrency group keys on the bare item number rather than the canonical subject identity ADR 0106 requires, so two sources' items with one number share a slot; pre-existing, tracked in #7475.

Stacked above this PR: the steering ADRs, which deliver a work-item update into the running agent. None is a prerequisite; when nothing steers, the pending run simply does the work.

Testing

  • The alignment test pins all seven stage jobs, including the matrix fan-out, asserts the YAML node's tag and value so a literal boolean cannot silently become a quoted string, and fails on any job in the workflow it was not told about.
  • runfacts_test.go covers both exports, UTC normalisation, quote escaping, the empty head on an issue run, every GitLab pipeline shape, that GITHUB_SHA is never a fallback, that both keys are reserved, and that the export sits after the .env.d line.
  • Every commit builds, vets and passes the targeted tests on its own; make lint and gitlint pass over the range.

Checklist

  • PR title follows Conventional Commits
  • Commits are signed off (DCO)
  • I wrote this contribution myself and can explain all changes in it

Refs #6957

@waynesun09

Copy link
Copy Markdown
Member Author

Stacked: this is the base. #6959 sits on top of it and carries the steering half. Reviewing this one alone is meaningful; reviewing #6959 without this one is not.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Optionally preserve in-flight agent stage runs

✨ Enhancement ⚙️ Configuration changes 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Lets repositories preserve active stage runs while retaining cancellation as the default.
• Exports run head and start time for detecting intervening work-item changes.
• Adds concurrency, run-fact, escaping, and forge-specific baseline coverage.
Diagram

graph TD
  A["Repository event"] --> B{"Preserve runs?"}
  B -- "No" --> C["Cancel active run"] --> D["Newest stage run"] --> G["CLI run baseline"] --> H["Agent sandbox"]
  B -- "Yes" --> E["Finish active run"] --> F["Pending stage run"] --> G
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Make preservation unconditional
  • ➕ Provides one consistent concurrency policy across repositories
  • ➕ Eliminates a long-lived configuration toggle
  • ➖ Changes existing behavior before ADR 0098 is accepted
  • ➖ Requires consumers to support state reconciliation safely
2. Add runtime steering
  • ➕ Could redirect active agents instead of waiting for a subsequent run
  • ➕ May reduce duplicated work after rapid events
  • ➖ Requires watcher, receipt, and runtime protocol changes
  • ➖ Introduces substantially more failure modes than queue coalescing
3. Retain cancel-and-restart behavior
  • ➕ Preserves established semantics without agent-side reconciliation
  • ➕ Always starts from the newest dispatch context
  • ➖ Discards completed work during event bursts
  • ➖ Repeats sandbox provisioning, bootstrap, and item analysis

Recommendation: The opt-in preserve-and-coalesce approach is best while policy and agent reconciliation support are still rolling out. It preserves compatibility, relies on GitHub Actions' existing single-pending-run semantics, and exports only the baseline facts agents need; preservation can become unconditional later if ADR 0098 is accepted.

Files changed (6) +187 / -23

Enhancement (1) +56 / -2
run.goExport immutable run baseline facts to sandboxes +56/-2

Export immutable run baseline facts to sandboxes

• Captures the run start time and resolves pull or merge request head SHAs for GitHub and GitLab. It exports both values safely into the sandbox and reserves their keys against harness overrides, deliberately excluding GITHUB_SHA as a fallback.

internal/cli/run.go

Tests (3) +106 / -11
run_test.goPass run facts through existing bootstrap tests +4/-4

Pass run facts through existing bootstrap tests

• Updates existing bootstrapEnv test calls for the new runFacts argument without changing their original assertions.

internal/cli/run_test.go

runfacts_test.goCover run baseline extraction and environment exports +85/-0

Cover run baseline extraction and environment exports

• Tests UTC normalization, empty issue heads, shell-quote escaping, GitHub and GitLab SHA sources, and exclusion of the base GITHUB_SHA. It also verifies that both exported keys remain reserved.

internal/cli/runfacts_test.go

workflow_call_alignment_test.goEnforce exact stage preservation expressions +17/-7

Enforce exact stage preservation expressions

• Changes concurrency decoding from bool to yaml.Node so tests can handle both expressions and literals. It asserts the exact preservation-gated expression on dispatch stages while retaining literal checks for reusable workflows, thin callers, and shims.

internal/scaffold/workflow_call_alignment_test.go

Documentation (1) +1 / -0
ci-workflows.mdDocument agent-stage concurrency policy +1/-0

Document agent-stage concurrency policy

• Documents the repository-level preservation option, its default behavior, and the requirement that every dispatch stage use the identical expression.

docs/contributing/ci-workflows.md

Other (1) +24 / -10
reusable-dispatch.ymlGate stage cancellation on repository preservation policy +24/-10

Gate stage cancellation on repository preservation policy

• Replaces hard-coded cancellation on all seven stage jobs with FULLSEND_PRESERVE_RUNS-based expressions. The default continues cancelling active runs, while an explicit true value preserves the active run and queues the newest event.

.github/workflows/reusable-dispatch.yml

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 2:21 PM UTC · Ended 3:03 PM UTC

Commit: c45f2ad · View workflow run →

@qodo-code-review

qodo-code-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Run timestamp starts too late ✓ Resolved
Description
FULLSEND_RUN_STARTED_AT is captured only after harness resolution, token minting, environment
expansion, and validation, so work-item activity during that setup is incorrectly classified as
predating the run. A preserved run can therefore miss an update that occurred after runAgent began
and write a stale result.
Code

internal/cli/run.go[R1125-1127]

+	// The instant this run started, exported into the sandbox so the agent
+	// can tell which activity on the work item postdates it.
+	runStartedAt := time.Now().UTC()
Relevance

●●● Strong

Recent run.go correctness findings about lifecycle boundaries and preserving run state are accepted.

PR-#1682
PR-#1780

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
runAgent begins at line 483 and performs environment loading and harness resolution from lines 496
onward; token minting and environment validation also occur at lines 865-920. The new timestamp is
not captured until lines 1125-1127, despite being documented and exported as the instant the run
started.

internal/cli/run.go[483-524]
internal/cli/run.go[865-920]
internal/cli/run.go[1125-1127]
internal/cli/run.go[1811-1812]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Capture `runStartedAt` at the beginning of `runAgent`, before setup work that may take significant time, so the exported baseline covers the complete run lifecycle.

## Issue Context
The current assignment occurs after harness resolution, token minting, environment expansion, and validation. Updates arriving during those operations can be excluded from the agent's final reconciliation window.

## Fix Focus Areas
- internal/cli/run.go[483-500]
- internal/cli/run.go[1125-1127]
- internal/cli/run.go[1811-1812]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Run facts remain shadowable ✓ Resolved
Description
bootstrapEnv emits the reserved run facts before sourcing .env.d/*.env, allowing any expanded
harness host_files environment file to overwrite them. The agent can consequently receive
fabricated or stale baselines despite these keys being reserved against env.sandbox shadowing.
Code

internal/cli/run.go[R2770-2772]

+	// Expose this run's baseline so the agent can re-check, once, whether the
+	// work item moved under it before it writes its result.
+	lines = append(lines, buildRunFactsEnvLines(facts)...)
Relevance

●●● Strong

The repository accepted protections against environment shadowing and explicitly recognized .env.d
precedence risks.

PR-#2582
PR-#5837

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The reservation check only filters env.sandbox keys in buildSandboxEnvLines. Run facts are
appended at lines 2770-2772, but .env.d files are sourced afterward at lines 2812-2813; those
files are populated from harness host_files, whose contents may contain assignments or exports.

internal/cli/run.go[2645-2705]
internal/cli/run.go[2770-2772]
internal/cli/run.go[2812-2818]
internal/cli/run.go[2838-2865]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Ensure runner-owned run facts take precedence over both `.env.d` files and `env.sandbox` values by exporting them after all user-configurable environment sources.

## Issue Context
The reserved-key validation applies only to `env.sandbox`. Expanded `host_files` are sourced later from `.env.d`, so they can currently redefine either run-fact variable.

## Fix Focus Areas
- internal/cli/run.go[2645-2669]
- internal/cli/run.go[2770-2772]
- internal/cli/run.go[2812-2818]
- internal/cli/run.go[2838-2865]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
✅ Compliance rules (platform): 67 rules
Review mode: ⚖️ Balanced: This changes GitHub Actions concurrency behavior and runtime environment exports across multiple paths, creating genuine CI and agent-state risks, but the scope remains cohesive enough for one careful review.

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread internal/cli/run.go Resolved
Comment thread internal/cli/run.go Resolved
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://96dbbe00-site.fullsend-ai.workers.dev

Commit: 3733389431a79aff9ef45f2cc1c4a2bd45c7f96d

@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (validation failed after 2 iteration(s)) · Started 2:21 PM UTC · Completed 3:03 PM UTC

Commit: c45f2ad · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $6.04

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 3:15 PM UTC · Ended 3:28 PM UTC

Commit: e56312e · View workflow run →

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:30 PM UTC · Completed 3:52 PM UTC

Commit: 9085c4d · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $5.53

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Risk Assessment: elevated (3/5)

Details

Modifying two protected CI workflow files alongside high churn and multi-author contention in internal/cli/run.go and reusable-dispatch.yml, coupled with a breaking concurrency change lacking a feature-flag or opt-out mechanism, sustains an elevated risk score of 3 under re-review anchoring.

Previous run

Risk Assessment: elevated (3/5)

Details

Modifying two protected CI workflow files alongside high churn and multi-author contention in internal/cli/run.go and reusable-dispatch.yml, coupled with an unflagged breaking concurrency change lacking an opt-out mechanism, sustains an elevated risk score of 3 under re-review anchoring.

Previous run (2)

Risk Assessment: elevated (3/5)

Details

Modifying two protected CI workflow files alongside high churn and multi-author contention in internal/cli/run.go and reusable-dispatch.yml, coupled with an unflagged breaking concurrency change lacking an opt-out mechanism, sustains an elevated risk score of 3 under re-review anchoring across the re-evaluated PR diff.

Previous run (3)

Risk Assessment: elevated (3/5)

Details

Modifying two protected CI workflow files alongside high churn and multi-author contention in internal/cli/run.go and reusable-dispatch.yml, coupled with a breaking concurrency change lacking an opt-out feature flag, sustains an elevated risk score of 3 under re-review anchoring; only documentation files changed since the prior assessment.

Previous run (4)

Risk Assessment: elevated (3/5)

Details

Modifying two protected CI workflow files alongside high churn and multi-author contention in internal/cli/run.go and reusable-dispatch.yml, coupled with a breaking concurrency change lacking an opt-out feature flag, sustains an elevated risk score of 3 under re-review anchoring.

Previous run (5)

Risk Assessment: elevated (3/5)

Details

Touching two protected CI workflows alongside high churn and multi-author contention in run.go and reusable-dispatch.yml, combined with a breaking concurrency change lacking an opt-out flag, sustains an elevated risk score of 3 under re-review anchoring.

Previous run (6)

Risk Assessment: elevated (3/5)

Details

Elevated risk driven by breaking changes to protected CI dispatch workflows without an opt-out toggle, along with high git churn and multi-author contention on touched files, anchored to prior assessment (elevated, 3/5) and partially mitigated by dedicated unit test coverage.

Previous run (7)

Risk Assessment: elevated (3/5)

Details

Elevated risk driven by breaking changes to protected CI dispatch workflows without a toggle flag, along with high git churn and multi-author contention on touched files, partially mitigated by focused issue scope alignment and dedicated unit tests.

Previous run (8)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring preserves elevated (3) risk: Tier 1 confirms large blast radius with 2 protected CI workflow files, Tier 2 reflects high multi-author churn and regression history in core dispatch files, and Tier 3 represents an unflagged breaking behavior change addressing a subset of issue #6957.

Previous run (9)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 is unchanged from the prior round (large blast radius, PROTECTED_PATH_COUNT=2 confirmed as exactly the two .github/workflows/ files, no dependency changes, non-bot/non-first-time author); Tier 2 reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots; Tier 3 remains an unconditional, no-opt-out breaking behavior change against a deliberately partial (stacked-PR) match to linked issue #6957's full scope, so no signal moved strongly enough to shift the composite from the prior review round's score.

Previous run (10)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 is unchanged from the prior round (large blast radius, PROTECTED_PATH_COUNT=2 confirmed as exactly the two .github/workflows/ files, no dependency changes, non-bot/non-first-time author); Tier 2 reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots; Tier 3 remains an unconditional, no-opt-out breaking behavior change against a deliberately partial (stacked-PR) match to linked issue #6957's full scope, so no signal moved strongly enough to shift the composite from the prior review round's score.

Previous run (11)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 remains large-blast-radius with two protected .github/ paths, no dependency changes, and a non-bot/non-first-time author; Tier 2 git history reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots; Tier 3 still reflects an unconditional, no-opt-out breaking behavior change with no feature flag against a deliberately partial (stacked-PR) match to linked issue #6957's full scope, so no signal moved strongly enough to shift the composite from the prior review round's score.

Previous run (12)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 buckets are unchanged from the prior round (14 files, 628 lines, large blast radius, one protected CI-workflow path, non-bot/non-first-time author), Tier 2 git history reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots, and Tier 3 still reflects an unconditional, no-opt-out breaking behavior change with no feature flag against a deliberately partial (stacked-PR) match to linked issue #6957 scope, so no signal moved strongly enough to shift the composite from the prior score.

Previous run (13)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 buckets are unchanged from the prior round (14 files, 628 lines, large blast radius, one protected CI-workflow path, non-bot/non-first-time author), Tier 2 git-history analysis reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots, and Tier 3 confirms an unconditional, no-opt-out breaking behavior flip with no feature flag but a deliberately partial (stacked-PR) scope match to its linked issue -- together sustaining the composite at elevated with no new signal strong enough to move it.

Previous run (14)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated (3): Tier 1 buckets are unchanged from the prior round (11-25 files, 300-799 lines, large blast radius, one protected CI-workflow path, non-bot/non-first-time author), git-history analysis reconfirms run.go and reusable-dispatch.yml as extreme multi-author churn/fix hotspots, and Tier 3 confirms an unconditional, no-opt-out breaking behavior flip with no feature flag — together sustaining the composite at elevated with no new signal strong enough to move it.

Previous run (15)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring holds at elevated: Tier 1 buckets are unchanged from the prior round (11-25 files, 300-799 lines, large blast radius, one protected CI-workflow path, non-bot/non-first-time author) and the unconditional, no-opt-out cancel-in-progress flip across every repository keeps the composite at elevated; the one concrete delta since the prior round (internal/cli/github.go dropping out of the diff) reduces file/line count but the remaining files are still extreme multi-author churn/fix hotspots, so there is no basis to move off 3/elevated.

Previous run (16)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring preserves the prior score of 3 (elevated): Tier 1 is unchanged (16 files, 628 lines, large blast radius, one protected/CI workflow path, non-bot non-first-time author), Tier 2 confirms run.go, github.go, and reusable-dispatch.yml remain extreme multi-author fix/churn hotspots, and the only delta since the prior round -- a new ADR (+85 lines) and a 6-line architecture.md addition -- is doc-only with no code change, so there is no basis to deviate from elevated.

Previous run (17)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring preserves the prior score of 3 (elevated): Tier 1 is unchanged (one CI workflow file, one protected path, medium blast radius, non-bot non-first-time author), Tier 2 confirms run.go and reusable-dispatch.yml remain extreme multi-author churn hotspots, and Tier 3 shows a well-scoped, default-disabled subset of a larger linked issue; the only changes since the prior review are three doc-only additions, giving no reason to deviate from elevated.

Previous run (18)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring preserves the prior score of 3 (elevated): Tier 1 signals are unchanged (one CI workflow file, one protected path, medium change size, moderate test ratio, no dependency changes); Tier 2 confirms run.go and reusable-dispatch.yml remain extreme, tightly-coupled, multi-author churn hotspots; Tier 3 shows the PR covers only a narrow, explicitly-scoped slice of a much broader linked issue. No signal delta warrants a change from the prior elevated assessment.

Previous run (19)

Risk Assessment: elevated (3/5)

Details

Re-review anchoring preserves the prior score of 3 (elevated): Tier 1 signals are unchanged (CI workflow modified, one protected path, moderate-large change size, decent test ratio), Tier 2 confirms run.go and reusable-dispatch.yml remain extreme churn hotspots under heavy multi-author contention, and Tier 3 retains a rollback-safety concern from the behavioral concurrency toggle — no articulable reason exists to deviate from the prior elevated assessment.

Previous run (20)

Risk Assessment: elevated (3/5)

Details

Tier 1 signals are unchanged from the prior assessment (CI workflow modified, one protected path, moderate-large change size, decent test ratio); Tier 2 confirms run.go and reusable-dispatch.yml are extreme churn hotspots under heavy multi-author contention, and Tier 3 flags a rollback-safety concern from the behavioral concurrency toggle change -- all consistent with the prior score of 3 (elevated), which is preserved under re-review anchoring.

Previous run (21)

Risk Assessment: elevated (3/5)

Details

PR modifies critical workflow infrastructure (reusable-dispatch.yml) and core CLI logic (run.go) with CI workflow changes and one protected path file. Elevated by active development on run.go and the behavioral nature of the concurrency toggle change.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] .github/workflows/fullsend.yaml, .github/workflows/reusable-dispatch.yml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run), and fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [architectural-coherence] .github/workflows/reusable-dispatch.yml:1715 — harness-run's concurrency group still keys on fullsend-harness-${{ matrix.agent }}-${{ github.repository }}-${{ matrix.status_repo }}-${{ matrix.status_number }} rather than the canonical subject identity (entity.source.system, canonical kind, canonical ID) that ADR 0106's Decision requires all serializing layers to share. Pairing that pre-existing key with this PR's cancel-in-progress: false change turns a same-number collision from a visible cancel into a silent coalesce/drop of a different work item's dispatch. Not treated as blocking: the gap is proactively disclosed in the PR body ("Known, not fixed here... pre-existing, tracked in harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475"), issue harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475 is already open with a concrete fix plan, and this PR's own review history has consistently rated this the same way (documented, ADR-authorized, intentional trade-off).

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow the run_<topic>_test.go pattern (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go); runfacts_test.go omits the underscore, unlike those siblings (compound names like evalmeasure_test.go/minttoken_test.go are the CLI-command pattern, which this file is not, since runfacts is not a CLI command).
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

Review

Findings

Medium

  • [protected-path] .github/workflows/fullsend.yaml, .github/workflows/reusable-dispatch.yml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run) and expands its header comment with the run-baseline/queue: max rationale; fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [architectural-coherence] .github/workflows/reusable-dispatch.yml:1716 — harness-run's concurrency group still keys on fullsend-harness-${{ matrix.agent }}-${{ github.repository }}-${{ matrix.status_repo }}-${{ matrix.status_number }} rather than the canonical subject identity (entity.source.system, canonical kind, canonical ID) that ADR 0106's Decision requires all serializing layers to share. Pairing that pre-existing key with this PR's new cancel-in-progress: false changes a same-number collision from a visible cancel into a silent coalesce/drop of a different work item's dispatch. Not treated as blocking: the gap is proactively disclosed in the PR body ("Known, not fixed here... pre-existing, tracked in harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475"), issue harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475 is already open with a concrete fix plan, and this PR's own review history has consistently rated this the same way (documented, ADR-authorized, intentional trade-off).

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go); runfacts_test.go omits the underscore, unlike those siblings (compound names like evalmeasure_test.go/minttoken_test.go are the CLI-command pattern, which this file is not). This has recurred across roughly 20 prior review rounds without being addressed; not treated as blocking on its own.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.

  • [sub-agent-failure] N/A — The challenger sub-agent returned an empty adjudicated_findings set against a non-empty input (it attempted to remove both dimension findings above). Per protocol this is treated as a challenger failure rather than a legitimate full removal, so the pre-challenger finding set is used as-is.

Previous run (2)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [architectural-coherence] .github/workflows/reusable-dispatch.yml:1716 — harness-run's concurrency group still keys on fullsend-harness-${{ matrix.agent }}-${{ github.repository }}-${{ matrix.status_repo }}-${{ matrix.status_number }} rather than the canonical subject identity (entity.source.system, canonical kind, canonical ID) that ADR 0106's Decision requires all serializing layers to share. Pairing that pre-existing key with this PR's new cancel-in-progress: false changes a same-number collision from a visible cancel into a silent coalesce/drop of a different work item's dispatch. Not treated as blocking: the gap is proactively disclosed in the PR body ("Known, not fixed here... pre-existing, tracked in harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475"), issue harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475 is already open with a concrete fix plan, and this PR's own review history has consistently rated the much larger cancel-in-progress: false behavioral change as low severity for the same reason (documented, ADR-authorized, intentional trade-off).

  • [adr-compliance] docs/ADRs/0106-serialize-agent-runs-and-coalesce-subsequent-events.md:117 — The new update note states ADR 0106 is "Implemented on GitHub Actions by feat(dispatch)!: never cancel the agent run in flight on a work-item update #7007," but ADR 0106's Decision also requires serialization scopes keyed by canonical subject identity, and harness-run still keys on matrix.status_number (tracked in harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475). The note's phrasing overstates completeness.
    Remediation: Reword the update annotation to say feat(dispatch)!: never cancel the agent run in flight on a work-item update #7007 implements active-run preservation and run-baseline exports on GitHub Actions, while canonical subject-identity scoping remains pending under harness-run concurrency group keys on the bare item number, not the canonical subject identity #7475.

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go); runfacts_test.go omits the underscore, unlike those siblings (compound names like evalmeasure_test.go/minttoken_test.go are the CLI-command pattern, which this file is not). This has recurred across many prior review rounds without being addressed; not treated as blocking on its own.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.

  • [stale-doc] docs/glossary.md:143 — The "Debouncing" entry still describes ADR 0106 preserve-and-coalesce scheduling as future work ("after implementation, an active run finishes..."), while this PR updates docs/architecture.md, docs/guides/user/building-custom-agents.md, and docs/contributing/ci-workflows.md to present the GitHub Actions implementation as landed.
    Remediation: Update docs/glossary.md (Debouncing entry, ~line 143) so the GitHub Actions behavior is described in present tense, consistent with docs/architecture.md, without implying GitLab's waiter-discard is also complete.

  • [injection-pattern] internal/cli/run.go:5461 — FULLSEND_RUN_HEAD_SHA is exported via single-quoting with only apostrophe-escaping (strings.ReplaceAll(facts.headSHA, "'", "'\\''")), which is sufficient against shell metacharacters for the values actually reachable today (forge-generated hex on the per-repo GitHub path; env-sourced on GitLab). The event-payload JSON fallback path (prHeadSHAFromEventPath) could in principle carry unexpected bytes through unfiltered. Not currently exploitable by an untrusted PR author via the standard dispatch path, but there's no positive validation of the SHA's shape before export, unlike TRACEPARENT on the same code path, which is allowlisted.
    Remediation: Validate facts.headSHA against an empty-or-hex-git-object-name pattern (e.g. ^[0-9a-fA-F]{7,64}$) before export, treating anything else as empty, mirroring the TRACEPARENT allowlist posture.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (3)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new file tests helpers split out of run.go (runFacts, buildRunFactsEnvLines, runHeadSHA). Existing topic splits of that file are named run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). runfacts_test.go concatenates the topic instead, unlike those siblings. Compound CLI-command files in the same package (evalmeasure_test.go, minttoken_test.go) are a different pattern: this file is not a command name. This finding has recurred across many prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). The new test file remains named runfacts_test.go, omitting the underscore between run and the topic suffix — the helper type it tests is runFacts in run.go, matching the sibling-split pattern rather than a concatenated CLI-command name. This finding has recurred across roughly 17 prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.

  • [cross-repo-contract-consistency] docs/contributing/ci-workflows.md:29 — The new bullet documents that every stage job in reusable-dispatch.yml carries cancel-in-progress: false, scoping the rule to the per-repo path and explicitly excluding the deprecated per-org path (ADR 0044). It still does not mention that the prioritize role's other per-repo entry path — the scheduler/workflow_dispatch-driven prioritize.yml thin caller and its reusable-prioritize.yml callee, neither touched by this PR — retains cancel-in-progress: true with a distinct group prefix (fullsend-prioritize-agent- vs. fullsend-prioritize-), confirmed unchanged in internal/scaffold/workflow_call_alignment_test.go's thinCallerConcurrencyExpectations/reusableAgentConcurrencyExpectations. The same logical "prioritize" role therefore still has two independent concurrency lanes with opposite cancellation semantics depending on entry path, and this asymmetry remains uncalled-out in the doc prose.
    Remediation: Add a sentence to the new bullet in docs/contributing/ci-workflows.md (or the ADR 0106 update) noting that the prioritize thin-caller path (prioritize.yml → reusable-prioritize.yml) is a separate, still-cancelling concurrency lane distinct from the dispatch-inlined prioritize stage, or file a follow-up to align it.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (5)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 (closed as completed), carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: paragraph, and the description plus the already-Accepted ADR 0106/ADR 0063 update notes explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). The new test file remains named runfacts_test.go, omitting the underscore between run and the topic suffix. This finding has recurred across roughly 14 prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.

  • [cross-repo-contract-consistency] docs/contributing/ci-workflows.md:29 — The new rule states every stage job in reusable-dispatch.yml carries cancel-in-progress: false, and workflow_call_alignment_test.go confirms this for the dispatch-inlined prioritize job (group prefix fullsend-prioritize-). However, the standalone reusable-prioritize.yml invoked by the per-repo prioritize.yml thin caller (not touched by this PR) keeps cancel-in-progress: true and uses a distinct group prefix (fullsend-prioritize-agent-), per thinCallerConcurrencyExpectations in workflow_call_alignment_test.go. The same logical "prioritize" role therefore has two independent concurrency lanes with opposite cancellation semantics depending on the entry path (scheduler/workflow_dispatch-driven thin caller vs. event-driven dispatch), and this asymmetry is not called out anywhere in the diff's documentation.
    Remediation: Add a note to docs/contributing/ci-workflows.md (or the ADR 0106 update) clarifying that the never-cancel contract applies only to reusable-dispatch.yml's inlined stage jobs, and that the prioritize thin-caller path via reusable-prioritize.yml intentionally retains cancel-in-progress: true — or file a follow-up to align it.

  • [sub-agent-failure] N/A — The challenger sub-agent returned an empty adjudicated finding set against a non-empty input (it attempted to remove all 3 dimension findings). Per protocol this is treated as a challenger failure rather than a legitimate full-removal, so the pre-challenger finding set above is used as-is.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (6)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run) and adds a queue: max-avoidance rationale to its header comment; fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus a BREAKING CHANGE: paragraph in the description, and the description plus the already-Accepted ADR 0106 explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [logic-error] .github/workflows/reusable-dispatch.yml:39 — The new concurrency comment's first clause ("queue: max is deliberately not used: it is incompatible with cancel-in-progress: true, so it cannot be expressed here") is a non sequitur against the jobs it documents: every stage job in this same file now sets cancel-in-progress: false (e.g. triage at line 681), not true. The second clause is the design-correct reason to omit queue: max regardless: allowing more than one pending run would reintroduce the "N pending full runs" failure mode that this PR's preserve-and-coalesce change (ADR 0106) exists to remove, and ADR 0106 relies on GitHub's default single-pending-slot behavior (no queue key) rather than an explicit queue setting.
    Remediation: Rewrite the first clause so it isn't framed as a cancel-in-progress: true incompatibility (that value no longer appears in this file). State plainly that queue is omitted because the default single-pending-run behavior already implements ADR 0106's coalescing, and an explicit queue: max would reintroduce unbounded pending runs.

  • [naming-conventions] internal/cli/runfacts_test.go:1 — Sibling test files that split out tests for run.go by topic in internal/cli/ follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). The new file is runfacts_test.go, omitting the underscore between run and the topic suffix. Compound names without underscores elsewhere in the package (fetchserver_test.go, minttoken_test.go, postcomment_test.go) correspond to top-level CLI subcommands, which this file (testing the unexported runFacts type and its helpers) is not.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the established sibling naming convention.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (7)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus a BREAKING CHANGE: paragraph in the description, and the description plus the already-Accepted ADR 0106 explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [behavioral-contract-break] .github/workflows/reusable-dispatch.yml:681 — All seven stage jobs (triage at 681, code at 792, review at 933, fix at 1063, retro at 1345, prioritize at 1457, harness-run at 1716) flip cancel-in-progress from true to false. This is an unconditional change to the reusable workflow's observable scheduling contract for every downstream consumer (vendored-shim callers and pinned-ref callers alike): a newer dispatch on the same work item no longer cancels the in-flight run — GitHub instead queues a single pending run behind it. internal/scaffold/workflow_call_alignment_test.go pins cancel-in-progress: false as a literal !!bool across every stage including harness-run; the per-repo shim template carries no cancel-in-progress key, so there's no drift there. This is the PR's documented, intentional purpose (ADR 0106); the title already carries !.
    Remediation: No code change required. Keep the ! in the PR title/commit and the BREAKING CHANGE: footer so GoReleaser surfaces this scheduling change to pinned/vendored callers; rollout is per-consumer at pin bump or scaffold sync, not fleet-wide on merge.
Previous run (8)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's header comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus a BREAKING CHANGE: paragraph in the description, and the description plus the already-Accepted ADR 0106 (and its own and ADR 0063's update notes added in this diff) explain the rationale in detail. Human approval is always required for protected-path changes, regardless of context.

Low

  • [behavioral-contract-break] .github/workflows/reusable-dispatch.yml:681 — All seven stage jobs (triage at 681, code at 792, review at 933, fix at 1063, retro at 1345, prioritize at 1457, harness-run at 1716) flip cancel-in-progress from true to false. This is an unconditional change to the reusable workflow's observable scheduling contract for every downstream consumer (vendored-shim callers and pinned-ref callers alike): a newer dispatch on the same work item no longer cancels the in-flight run — GitHub instead queues a single pending run behind it. Consumers/custom agents that still assume cancel-and-restart semantics and do not read FULLSEND_RUN_HEAD_SHA/FULLSEND_RUN_STARTED_AT can act on stale dispatching-event state rather than the work item's current state. internal/scaffold/workflow_call_alignment_test.go pins cancel-in-progress: false as a literal !!bool across every stage including harness-run; the per-repo shim template carries no cancel-in-progress key, so there's no drift there. This is the PR's documented, intentional purpose (ADR 0106); the title already carries !.
    Remediation: No code change required. Keep the ! in the PR title/commit and the BREAKING CHANGE: footer so GoReleaser surfaces this scheduling change to pinned/vendored callers; rollout is per-consumer at pin bump or scaffold sync, not fleet-wide on merge.
Previous run (9)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus a BREAKING CHANGE: paragraph in the description, and the description plus the ADR 0106/ADR 0063 update notes explain the rationale in detail (grounded in the already-Accepted ADR 0106, which explicitly requires this exact change). Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). The new file is runfacts_test.go, omitting the underscore. That said, the package also has compound-name files for type-oriented tests (evalmeasure_test.go, minttoken_test.go, postcomment_test.go), and this file tests the unexported runFacts type, so runfacts_test.go is a defensible name under that alternate pattern. This is a stylistic nit only — not a basis for blocking an intentional breaking-change PR.
    Remediation (optional): Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go if matching the run_<topic>_test.go splits is preferred.

  • [behavioral-contract-break] .github/workflows/reusable-dispatch.yml:681 — All seven stage jobs (triage at 681, code at 792, review at 933, fix at 1063, retro at 1345, prioritize at 1457, harness-run at 1716) flip cancel-in-progress from true to false. This is an unconditional change to the reusable workflow's observable scheduling contract for every downstream consumer (vendored-shim callers and pinned-ref callers alike): a newer dispatch on the same work item no longer cancels/restarts the in-flight run — GitHub instead queues a single pending run behind it. Consumers/custom agents that still assume cancel-and-restart semantics and do not read the new FULLSEND_RUN_HEAD_SHA/FULLSEND_RUN_STARTED_AT baseline vars can act on stale dispatching-event state rather than the work item's current state. internal/scaffold/workflow_call_alignment_test.go pins cancel-in-progress: false (literal boolean, not a quoted string) across every stage including harness-run, and internal/scaffold/fullsend-repo/templates/shim-per-repo.yaml's comment is updated to match (the shim itself carries no cancel-in-progress key, so there's no drift there). This is the PR's documented, intentional purpose (ADR 0106); the title already carries !.
    Remediation: No code change required. Keep the ! in the PR title/commit (and the BREAKING CHANGE: footer) so GoReleaser surfaces this scheduling change to pinned/vendored callers.

Previous run (10)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run); fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description plus the ADR 0106/ADR 0063 update notes explain the rationale in detail (grounded in the already-Accepted ADR 0106, which explicitly calls for this exact change). Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — Sibling test files split from run.go by topic in internal/cli/ follow run_<topic>_test.go (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). The new file is runfacts_test.go, omitting the underscore between run and the topic suffix. This finding has recurred across multiple prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the other run.go topic-split test files.

  • [behavioral-contract-break] .github/workflows/reusable-dispatch.yml:616 — The diff does not modify the on.workflow_call inputs/secrets block of reusable-dispatch.yml, but every agent stage job's cancel-in-progress flips from true to false. Once a consumer adopts the new ref, a newer dispatch on the same work item no longer cancels the in-flight run; GitHub keeps one pending run per group. Agents that still assume cancel-and-restart, and that do not use FULLSEND_RUN_HEAD_SHA/FULLSEND_RUN_STARTED_AT, can write against the dispatching event rather than current subject state. This is the PR's intended ! break (ADR 0106), already documented in docs/contributing/ci-workflows.md and docs/agents/fix.md.
    Remediation: No code change required. The PR title already carries !; keep that so GoReleaser release notes surface the scheduling change to pinned/vendored callers, and point custom-agent authors at the run-baseline vars before they bump.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (11)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run) and updates its header comments; fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description plus the ADR 0106/ADR 0063 update notes explain the rationale in detail (grounded in the already-Accepted ADR 0106, which explicitly calls for this exact change). Human approval is always required for protected-path changes, regardless of context.
Previous run (12)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml, .github/workflows/fullsend.yaml — This PR modifies files under the .github/ protected path: reusable-dispatch.yml flips concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run) and adds run-baseline documentation to its header comment; fullsend.yaml's comment is updated to match. The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description plus the ADR 0106/ADR 0063 update notes explain the rationale in detail (grounded in the already-Accepted ADR 0106, which explicitly calls for this exact change). Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go).
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (13)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a file under the .github/ protected path, flipping concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run). The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description plus the ADR 0106/ADR 0063 update notes explain the rationale in detail (grounded in the already-Accepted ADR 0106, which explicitly calls for this exact change). Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). This finding has recurred across at least 9 prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.

  • [docs-currency] docs/reference/harness-reference.md:155 — The timeout_minutes field note states "Both names are reserved" for FULLSEND_TIMEOUT_MINUTES and FULLSEND_ITERATION_DEADLINE, but the harness reference does not mention that this PR also adds FULLSEND_RUN_HEAD_SHA and FULLSEND_RUN_STARTED_AT to reservedSandboxKeys with the same silent-drop-from-env.sandbox behavior. This is a pre-existing gap in shape rather than a new regression — reservedSandboxKeys already includes several other names (FULLSEND_ROLE, FULLSEND_SLUG, FULLSEND_OUTPUT_DIR, PATH, etc.) that this same doc page doesn't enumerate either — and the two new variables are already documented for agent authors in docs/cli/run.md's new "Run baseline" section, building-custom-agents.md, and bring-your-own-agent.md.
    Remediation: Update docs/reference/harness-reference.md (either in the env.sandbox documentation or alongside the reserved-key note) to mention that FULLSEND_RUN_HEAD_SHA and FULLSEND_RUN_STARTED_AT are also reserved and dropped if declared in env.sandbox, with a pointer to docs/cli/run.md#run-baseline.

  • [api-contract] docs/cli/run.md:285 — FULLSEND_RUN_HEAD_SHA and FULLSEND_RUN_STARTED_AT are presented as a shared "run start" baseline, but they are not sampled at the same as-of instant, and the miss-window wording understates the queue wait that cancel-in-progress: false now makes unconditional for every repository. FULLSEND_RUN_STARTED_AT is time.Now().UTC() captured at the top of runAgent (internal/cli/run.go:521), i.e. after GitHub Actions has admitted the job past the concurrency group — so it can now trail a predecessor run by that run's entire duration plus setup. FULLSEND_RUN_HEAD_SHA instead comes from PR_HEAD_SHA, wired from needs.route.outputs.event_payload.pull_request.head.sha, a value GitHub freezes when the route job finished — before any concurrency wait. The "Run baseline" section names "the platform's queueing plus the run's own setup" as the STARTED_AT gap, but then says a re-check "looks at a slightly narrower window" and "can miss an update that landed during setup," which drops the queue wait it just acknowledged. The same "a little of the platform's queueing" wording appears in docs/guides/user/building-custom-agents.md and docs/guides/user/bring-your-own-agent.md. Not a runtime bug today — nothing in this repo consumes the variables yet (the re-check lives in the stacked agents-repo "fleet backstop"). The directional claim for STARTED_AT (never a wider window) is still correct.
    Remediation: Describe FULLSEND_RUN_HEAD_SHA as the triggering event's head captured at dispatch/route time (not CLI start), and FULLSEND_RUN_STARTED_AT as the CLI's clock after concurrency queueing and setup. Drop "slightly" / "a little," and include the queue wait — not only setup — in the list of updates a re-check can miss. Keep the "never a wider window" invariant for STARTED_AT.

  • [breaking-change-communication] docs/ADRs/0106-serialize-agent-runs-and-coalesce-subsequent-events.md:109 — The PR body's BREAKING CHANGE statement claims "every repository stops cancelling the run in flight on the release that carries this, with no opt-out." This slightly overstates immediacy given the project's reusable-workflow distribution model: repositories consume reusable-dispatch.yml via a vendored copy or a pinned ref, so the behavior change only lands for a given repo at its next explicit update/vendor-sync, not simultaneously fleet-wide. "No opt-out" (no per-repo flag to keep the old behavior once updated) is accurate; the immediacy framing is the part worth tightening.
    Remediation: Scope the immediacy claim, e.g. "every repository that updates to (or vendor-syncs) this release stops cancelling the run in flight, with no per-repo config flag to keep the old behavior once updated," so downstream readers of the GoReleaser-generated release notes don't assume instantaneous fleet-wide rollout.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (14)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a file under the .github/ protected path, flipping concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run). The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description plus the new ADR 0101 explain the rationale in detail (grounded in the already-Accepted ADR 0106). Human approval is always required for protected-path changes, regardless of context.

Low

  • [api-contract] docs/ADRs/0101-preserve-the-agent-run-in-flight-on-work-item-updates.md:66 — FULLSEND_RUN_HEAD_SHA and FULLSEND_RUN_STARTED_AT are documented as sharing a common "run start" baseline, but they are not sampled at the same as-of instant. FULLSEND_RUN_STARTED_AT is time.Now().UTC() captured at the top of runAgent (internal/cli/run.go:521), i.e. after GitHub Actions has admitted the job past the concurrency group this PR's own cancel-in-progress: false change can now make a job wait behind. FULLSEND_RUN_HEAD_SHA instead comes from PR_HEAD_SHA (internal/cli/run.go:5068), wired from needs.route.outputs.event_payload.pull_request.head.sha (e.g. reusable-dispatch.yml:714), a value GitHub freezes when this run's own route job finished — before any concurrency wait. ADR 0101 and docs/cli/run.md describe the CLI-clock-vs-workflow-created_at gap as bounded to "the setup that precedes it" / "a slightly narrower window", but that framing doesn't account for the concurrency-queue wait this PR introduces, which can span the entire duration of a predecessor run. Confirmed not a runtime bug (nothing yet consumes these variables), but the "the work item's head at run start" wording overstates how tightly the two exported facts line up once a job can queue behind a long-running predecessor.
    Remediation: Do not re-fetch the PR head at job-start time (that would erase the wait-period drift the export exists to surface). Instead, tighten the wording in ADR 0101 and docs/cli/run.md's Run baseline section so FULLSEND_RUN_HEAD_SHA is described as the triggering event's head (captured at dispatch/route time) and FULLSEND_RUN_STARTED_AT as the CLI's clock after queueing and setup, and drop "slightly" from the narrower-window claim when the bound is a whole predecessor run rather than mere setup overhead.

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). This finding has recurred across multiple prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.

  • [cross-forge-consistency] docs/guides/user/building-custom-agents.md:79 — docs/guides/user/building-custom-agents.md and docs/guides/user/bring-your-own-agent.md summarize FULLSEND_RUN_HEAD_SHA as "empty for an issue" but do not mention that fullsend's own poller-raised GitLab agent pipeline also leaves it empty on merge-request runs (a caveat that docs/cli/run.md's Run baseline table does state). Both guides already link to that section, but a reader who stops at the summary line would reasonably assume the variable is populated for GitLab MR runs.
    Remediation: Add a short pointer next to the "empty for an issue" wording in both guides (e.g. "see fullsend run § Run baseline for forge-specific caveats") noting the current GitLab limitation, rather than only cross-referencing docs/cli/run.md for the general variable description.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (15)

Review

Findings

Medium

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a file under the .github/ protected path, flipping concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run). The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker plus an explicit BREAKING CHANGE: trailer, and its description explains the rationale in detail (including ADR 0113, itself grounded in the already-Accepted ADR 0106). Human approval is always required for protected-path changes, regardless of context.

Low

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). This finding has recurred across multiple prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.

  • [incorrect-doc] docs/ADRs/0113-preserve-the-agent-run-in-flight-on-work-item-updates.md:78 — ADR 0113's Decision section forward-references the not-yet-written in-run steering follow-up as "ADR 0101" ("recorded as ADR 0101, the steering decision stacked on this change"). No docs/ADRs/0101-*.md exists in the repository (numbering jumps 0100 → 0102), and "0101" is numerically lower than "0113" despite the claim it is stacked on this change. Hardcoding a specific future ADR number in an Accepted, immutable ADR risks immediate staleness once the follow-up lands under a different assigned number. This finding remains unaddressed from prior review rounds; the ADR is new on this branch (not yet merged to main), so the text can still be corrected before merge without triggering the immutable-ADR amendment rules.
    Remediation: Rephrase the forward reference without committing to a specific ADR number (e.g., "recorded in a follow-up ADR with the steering change that lands after this one"), or cite issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 / the stacked PR instead.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (16)

Review

Findings

High

  • [stale-doc] docs/agents/fix.md:95 — This file (not touched by this PR) states: "Each /fs-fix comment cancels any in-flight fix run for the same PR and starts a new one." This PR sets cancel-in-progress: false unconditionally on the fix stage job (along with all six other stage jobs) in .github/workflows/reusable-dispatch.yml, so a subsequent /fs-fix comment no longer cancels an in-flight fix run — the run in flight finishes and the new dispatch waits as the single pending run, then reconciles against the PR's current state. The documented behavior is now the opposite of what ships. This finding has recurred across multiple prior review rounds without being addressed.
    Remediation: Update the iteration-caps bullet in docs/agents/fix.md (lines 95-96) to state that a /fs-fix comment no longer cancels an in-flight fix run; it waits as the single pending run and reconciles against current PR state once the run in flight finishes, per ADR 0113.

Medium

  • [stale-doc] docs/guides/user/building-custom-agents.md:568 — The example agent workflow still sets cancel-in-progress: true (line 487), and the prose at lines 567-573 says this "reflects the currently deployed cancellation policy" and that the platform "will change" subject-scoped agent workflows to cancel-in-progress: false "once preserve-and-coalesce scheduling is implemented. Until that migration lands, keep the setting aligned with the reusable workflow that invokes the agent." This PR is that migration on GitHub (ADR 0113 / reusable-dispatch.yml). This PR touched this same file (lines 76-80, to document the new FULLSEND_RUN_* variables) but left the contradictory example and hedge in place.
    Remediation: Update the example workflow concurrency block (line 487) to cancel-in-progress: false, and revise the surrounding prose (lines 567-573) to state that preserve-and-coalesce scheduling is implemented per ADR 0113, replacing the "until that migration lands" hedge with pointers to ADR 0113 and ADR 0106.

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a file under the .github/ protected path, flipping concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run). The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, carries a Conventional Commits ! breaking-change marker, and its description explains the rationale in detail (including ADR 0113, which is itself grounded in the already-Accepted ADR 0106). Human approval is always required for protected-path changes, regardless of context.

Low

  • [incorrect-doc] docs/ADRs/0113-preserve-the-agent-run-in-flight-on-work-item-updates.md:79 — ADR 0113's Decision section forward-references the not-yet-written in-run steering follow-up as "ADR 0101" ("recorded as ADR 0101 with the steering change that lands after this one"). No docs/ADRs/0101-*.md exists on main (numbering jumps 0100 → 0102), and "0101" is numerically lower than "0113" despite the claim it "lands after this one." Hardcoding a specific future ADR number in an Accepted, immutable ADR will go stale the moment that follow-up lands under a different number. Unchanged since prior review rounds, which also rated this low.
    Remediation: Rephrase the forward reference without committing to a specific ADR number (e.g., "recorded in a follow-up ADR with the steering change that lands after this one"), or cite issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 / the stacked PR instead.

  • [comment-accuracy] internal/cli/run.go:5120 — buildRunFactsEnvLines's doc comment says run facts are written where they are, rather than through env.sandbox or an env/*.env file, because ".env.d files are sourced after this one." That's backwards: buildEnvScriptLines sources .env.d first (line 3113), then env.sandbox (3117), then these two exports (3130) — the call site's own comment (3121-3128) correctly states the real invariant ("after .env.d, for the same reason env.sandbox is"). The inverted comment on the function itself could push a future editor to "fix" the ordering in the wrong direction.
    Remediation: Rewrite the function-level comment to match the pinned order: facts are emitted after .env.d/env.sandbox so those sources cannot shadow them; they are not delivered via env.sandbox/${VAR} because reservedSandboxKeys drops those keys and ValidateRunnerEnvWith would hard-fail an unresolved ${FULLSEND_RUN_*} on the host.

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). This finding has recurred across multiple prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (17)

Review

Findings

High

  • [stale-doc] docs/agents/fix.md:95 — This file (not touched by this PR) states: "Each /fs-fix comment cancels any in-flight fix run for the same PR and starts a new one." This PR sets cancel-in-progress: false unconditionally on the fix stage job (along with all six other stage jobs) in .github/workflows/reusable-dispatch.yml, so a subsequent /fs-fix comment no longer cancels an in-flight fix run — the run in flight finishes and the new dispatch waits as the single pending run, then reconciles against the PR's current state. The documented behavior is now the opposite of what ships. This finding has recurred across multiple prior review rounds without being addressed (the file has never been touched by this PR).
    Remediation: Update the iteration-caps bullet in docs/agents/fix.md to state that a /fs-fix comment no longer cancels an in-flight fix run; it waits as the single pending run and reconciles against current PR state once the run in flight finishes, per ADR 0113.

Medium

  • [edge-case] internal/cli/run.go:5113 — gitlabMergeRequestHeadSHA's CI_COMMIT_SHA fallback is gated on CI_MERGE_REQUEST_IID, and the comment claims fullsend's GitLab agent job is a child pipeline (fullsend-dispatch.yml writes mr-dispatch-pipeline.yml; dispatch-mr-agents triggers it) into which MR predefined variables carry. That premise is false against current unmodified sources: native merge_request_event dispatch was removed in fix(gitlab): remove native MR dispatch path, route all events through poller #7322; fullsend-pipeline.yml includes the agent template only when CI_PIPELINE_SOURCE == "api" && $STAGE; internal/poll/dispatch.go's CreatePipeline sets STATUS_IID and never CI_MERGE_REQUEST_IID; fullsend-agent.yml still uses ${CI_MERGE_REQUEST_IID:-${STATUS_IID:-0}} at MR call sites. The "child pipeline" test in runfacts_test.go still injects CI_MERGE_REQUEST_IID=42 directly, so it doesn't reproduce production. On the real GitLab MR agent job the guard is false, so FULLSEND_RUN_HEAD_SHA exports the empty issue-run sentinel — fail-safe (no wrong SHA is ever reported), but the claimed GitLab head-SHA fallback does not fire on the path GitLab MR runs actually take. This finding is unchanged from the prior review round: the function body is byte-for-byte identical since then.
    Remediation: Correct or remove the comment's claim that MR predefined variables carry into the agent's own pipeline, and replace the "child pipeline" test (which sets CI_MERGE_REQUEST_IID directly) with the production api+STATUS_IID shape it's meant to represent. To actually populate a GitLab MR head SHA, have the poller pass a real source-branch SHA as an explicit pipeline variable and read that from gitlabMergeRequestHeadSHA — never STATUS_IID plus CI_COMMIT_SHA, since CI_COMMIT_SHA there is the protected branch, not the MR head.

  • [stale-doc] docs/guides/user/building-custom-agents.md:564 — The example agent workflow sets cancel-in-progress: true (line 487), and the prose at lines 564-567 says this "reflects the currently deployed cancellation policy" and that the platform "will change" subject-scoped agent workflows to cancel-in-progress: false "once preserve-and-coalesce scheduling is implemented. Until that migration lands, keep the setting aligned with the reusable workflow that invokes the agent." This PR is that migration on GitHub (ADR 0113 / reusable-dispatch.yml). A reader who copies the example implements the opposite of the new platform default while the surrounding prose falsely claims the migration hasn't landed, and the doc's own stated rule ("keep the setting aligned with the reusable workflow") now requires false, not true.
    Remediation: Update the example workflow concurrency block (line 487) to cancel-in-progress: false, and update the surrounding prose (lines 564-567) to state that preserve-and-coalesce scheduling is implemented per ADR 0113, replacing the "until that migration lands" hedge with a pointer to ADR 0113.

  • [protected-path] .github/workflows/reusable-dispatch.yml — This PR modifies a file under the .github/ protected path, flipping concurrency.cancel-in-progress from true to false unconditionally on all seven stage jobs (triage, code, review, fix, retro, prioritize, harness-run). The PR links issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957, is titled with a Conventional Commits ! breaking-change marker, and its description extensively explains the rationale (including the new ADR 0113 formalizing the decision and its acknowledged trade-off against ADR 0063's duplicate-dispatch mitigation). Human approval is always required for protected-path changes, regardless of context.

Low

  • [adr-consistency] docs/ADRs/0113-preserve-the-agent-run-in-flight-on-work-item-updates.md:76 — ADR 0113's Decision section forward-references the not-yet-written in-run steering follow-up as "ADR 0101" in prose: "recorded as ADR 0101 with the steering change that lands after this one." No docs/ADRs/0101-*.md exists on main (numbering jumps 0100 → 0102). Hardcoding a specific future ADR number in an Accepted, immutable ADR will go stale the moment that follow-up lands under a different number (and "0101" is numerically lower than "0113" despite the claim it "lands after this one," a further minor inconsistency). This finding is unchanged from the prior review round.
    Remediation: Phrase the forward reference without committing to a specific ADR number (e.g., "a follow-up ADR for the steering change, filed separately"), or cite the stacked PR / issue Steer the in-flight agent run on work-item updates instead of cancelling it #6957 instead.

  • [naming-convention] internal/cli/runfacts_test.go:1 — The new test file is named runfacts_test.go, whereas sibling test files that split out tests for run.go by topic in this package follow the run_<topic>_test.go naming convention (run_models_aliases_test.go, run_openai_test.go, run_overrides_test.go). This finding has recurred across multiple prior review rounds on this PR without being addressed.
    Remediation: Rename internal/cli/runfacts_test.go to internal/cli/run_facts_test.go to match the repository's file naming convention.

  • [contract-specification-completeness] docs/cli/run.md:273 — The new "Run baseline" section documents value, RFC 3339 UTC format, the empty-string sentinel for issue runs, write-ordering relative to .env.d, and reserved-key protection, but never states that FULLSEND_RUN_HEAD_SHA/FULLSEND_RUN_STARTED_AT are captured once at run start and are not refreshed per validation-loop iteration — unlike the adjacent "Budget and deadline" section, which explicitly documents that FULLSEND_ITERATION_DEADLINE is rewritten before every iteration via a separately-sourced file. Code confirms bootstrapEnv/buildRunFactsEnvLines run once before the iteration loop begins. The section already says "when the run began" / "at run start," so this is a missing contrast with the adjacent deadline section rather than an incorrect description.
    Remediation: Add a sentence to the "Run baseline" section (and the matching mentions in building-custom-agents.md/bring-your-own-agent.md) stating explicitly that the two facts are captured once at run start and are not refreshed between validation-loop iterations, in contrast to FULLSEND_ITERATION_DEADLINE.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (validation failed after 2 iteration(s)) · Started 7:17 PM UTC · Completed 7:59 PM UTC

Commit: c6c05f8 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:19 AM UTC · Completed 3:38 AM UTC

Commit: 82cd5e4 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $6.00

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:55 PM UTC · Completed 1:14 PM UTC

Commit: 79fa149 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $6.40

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:37 PM UTC · Completed 7:57 PM UTC

Commit: 986fcbc · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $6.71

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:49 PM UTC · Completed 9:11 PM UTC

Commit: c53021a · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.85

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:52 PM UTC · Completed 8:14 PM UTC

Commit: 0980638 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $7.70

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:35 PM UTC · Completed 4:00 PM UTC

Commit: 6158fec · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $8.30

fullsend-ai-review[bot]

This comment was marked as outdated.

…update

Every stage job in reusable-dispatch.yml ran in a concurrency group keyed on
the work item with cancel-in-progress: true, so a second push, comment, label
or title edit cancelled the run already working on the item and a fresh run
started over: sandbox provisioning and bootstrap before the model read a
line, then the whole item again from cold. On a review minutes from posting
that is the entire spend lost, and a spaced burst of pushes produces a
review of every intermediate state, each superseded before anyone reads it.

ADR 0106 (serialize agent runs and coalesce subsequent events, Accepted)
decided for preserve-and-coalesce and states that the reusable workflows
must move to cancel-in-progress: false. This is that change on GitHub. All
seven stage jobs, the matrix fan-out included, now carry the literal false,
so the run in flight finishes and the last run to queue waits as the single
pending run GitHub keeps per group. That is normally but not necessarily the
newest event, since a stage job queues only after route completes; either
way the pending run works from the item's current state, which is the
agent's side of the bargain. The value is identical on every job on purpose:
one role cancelling while another queues on the same item is harder to
reason about than either behaviour alone. The workflow header records what
the trade gives up: ADR 0063 counted per-stage cancellation as a layer
against duplicate poll dispatch, and that layer is gone everywhere, leaving
the poller's lock and agent idempotency. queue: max is not used because it
is incompatible with cancel-in-progress and N pending full runs is the
failure mode this exists to remove.

The alignment test pinned six of the seven jobs and asserted a Go bool,
which cannot tell a literal boolean from the quoted string that would
silently turn the value into an expression. It now pins all seven with the
YAML node's tag and value, and fails on any job in the workflow it was not
told about, so an eighth stage job cannot ship with its concurrency
unchecked.

The per-repo shim's header comment, and its generated copy in this
repository, described per-role cancel-in-progress groups; both now describe
the preserved run, and the scaffold test pins the new wording.

BREAKING CHANGE: Every repository stops cancelling the agent run in flight
when a newer event arrives on the same work item, on the release that
carries this. There is no opt-out. A run may now finish on input the work
item has already moved past; the pending run that follows works from
current state and corrects it. Repositories that relied on the newest event
superseding an older run will see both run to completion instead.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Now that a newer event no longer cancels the run in flight, a run can
outlive the state it was dispatched on, and the agent has to be able to
tell whether the work item moved under it before it writes its result. The
runner exports two run facts into the sandbox: FULLSEND_RUN_HEAD_SHA, the
pull or merge request's head at run start and empty for an issue, and
FULLSEND_RUN_STARTED_AT, RFC 3339 UTC. The head is empty rather than
absent on an issue run so an agent can skip its re-check on an empty
value, which it cannot do for a variable that is not there.

The start is captured at the top of runAgent, before harness resolution,
token minting and env expansion, each of which takes real time. It is
still the runner's own clock rather than the workflow run's server-side
created_at, and the gap runs one way: an agent re-checking against it sees
a narrower window than the run spans, never a wider one.

Both lines are emitted after .env.d is sourced and after the env.sandbox
block, and both keys are added to reservedSandboxKeys. Position is what
protects them: the reserved-key check drops an env.sandbox entry with
either name but says nothing about .env.d, so a harness env file sourced
above the line would otherwise overwrite them. The iteration-env source
stays last because it re-reads a file rewritten before every iteration.
That ordering is behaviour, so the script assembly moves out of
bootstrapEnv into buildEnvScriptLines and a test pins the run facts after
the .env.d line rather than at the end.

The SHA is single-quoted with internal quotes escaped, the way every other
exported value is, rather than trusting its shape. GITHUB_SHA is not a
fallback for the head: on pull_request_target it is the base branch, and a
base SHA presented as the head would report a head move on every run.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
On GitLab the head was read from CI_MERGE_REQUEST_SOURCE_BRANCH_SHA alone.
GitLab's predefined-variables reference says that variable is empty in
merge request pipelines and present only in merged results pipelines, so
on an ordinary merge request pipeline the run exported no head at all,
the signal reserved for issue runs, and an agent could not notice the
branch moving underneath it.

CI_COMMIT_SHA fills the gap, but only when the pipeline carries the merge
request's own variables: in a merged results pipeline it is the merge
result commit rather than the source head, and on a branch pipeline it is
the branch. The fallback is therefore gated on CI_MERGE_REQUEST_IID rather
than on the pipeline source string, since only a pipeline with the merge
request's variables has CI_COMMIT_SHA on the source branch, whatever its
source says. In a merged results pipeline the first variable is populated,
so the fallback is never reached there.

fullsend's own GitLab agent job does not carry those variables. Since #7322
the cron poller raises every agent run as an API pipeline on the protected
branch and passes the merge request's IID as STATUS_IID, and CI_COMMIT_SHA
is the protected branch's commit. STATUS_IID is deliberately not accepted
as "a merge request is known": pairing it with CI_COMMIT_SHA would tell the
agent the head moved on every run, the same failure GITHUB_SHA is refused
for on GitHub. On that path the head stays empty until the poller passes
the source branch's SHA as a pipeline variable of its own, which is a
follow-up and is recorded in the function comment and the run reference.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
The run reference gains a Run baseline section: the two variables, what
each holds, that the head is empty rather than absent on an issue run and
today on GitLab's poller-raised pipeline, that the start is the runner's
own clock and the gap it leaves runs one way, and why the export position
after .env.d and env.sandbox is what protects the values. The custom-agent
guide and bring-your-own-agent list the variables beside the budget ones
and point at that section, and the CLI internals diagram shows where in
the env script they land.

The CI-workflows conventions record that every stage job in
reusable-dispatch.yml carries cancel-in-progress: false, that the value
must stay identical across jobs, and what the trade gives up against
duplicate poll dispatch. The fix-agent page no longer says a /fs-fix
comment cancels the run in flight: it waits as the single pending run and
works from the PR's current state. The custom-agent workflow example
switches to false and drops the sentence that promised the switch once
ADR 0106 was implemented.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
ADR 0106 decided preserve-and-coalesce and said the reusable workflows
must move to cancel-in-progress: false. The change that does so carried
its own ADR for a while; with 0106 Accepted on main that record was
redundant, so none is added, and 0106 gets the one annotation the ADR
rules allow: a short update note under the GitHub Actions paragraph of its
Decision naming the pull request, the workflow setting and the two run
facts, with a link to the run reference for the detail.

ADR 0063's existing update note already says 0106 replaces automatic
cancellation. It now also says that on GitHub the per-stage cancellation
it counted as a second layer against duplicate poll dispatch is gone, and
that the duplicate-poll case is where the trade is least favourable.

The architecture overview's serialization bullet gains the GitHub shape:
every stage job with cancel-in-progress: false, the last run to queue
waiting as the single pending run, and the runner exporting the run facts,
pointing at the run reference rather than at a second ADR.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:45 PM UTC · Completed 7:06 PM UTC

Commit: 3733389 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $6.38

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread .github/workflows/reusable-dispatch.yml Resolved
Comment thread internal/cli/runfacts_test.go Resolved
@waynesun09

Copy link
Copy Markdown
Member Author

Moved to draft. Never cancelling the in-flight run is already ADR 0106's decision, so this stays code-only. It will be restarted on current main when the steering implementation (ADRs 0117–0121, #9028–#9032) is close, so it lands together with steering.

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 37333894 Deployed Sep 30, 2026 by github-actions[bot]
dev — 37333894 Deployed Sep 30, 2026 by waynesun09 via behaviour #14683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/elevated PR risk: elevated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants