Skip to content

chore(jirapoll): merge main into feat/jirapoll-skip-idle - #9899

Merged
dhshah13 merged 286 commits into
fullsend-ai:feat/jirapoll-skip-idlefrom
guyoron1:chore/jirapoll-skip-idle-merge-main
Nov 30, 2026
Merged

dhshah13 merged 286 commits into
fullsend-ai:feat/jirapoll-skip-idlefrom
guyoron1:chore/jirapoll-skip-idle-merge-main

Conversation

@guyoron1

@guyoron1 guyoron1 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Merges main into feat/jirapoll-skip-idle so that #9758 can merge again. main gained the project-set refactor of the Jira poller (#9883, cf628ed79) on 26 November, and it conflicts with this branch in internal/jirapoll/poller.go.

Updated 30 November: a second merge commit brings main up to d83d2ec72. It merged without conflict. It is here because main gained the entity-source configuration of the poller (#9893) that day, and the PRs stacked on this branch have to build on it: #9893 rewrote loadJiraPollSettings, where #9898 reads the per-cycle limit.

@dhshah13 this is only the merge, so you do not have to do it when you are back. Take it, change it or close it.

Related Issue

Part of #9751

Changes

Two merge commits and nothing else. The second (968956521) merged without conflict. What the first (80a9eecd5) had to settle:

  • internal/jirapoll/poller.go, import block (the one textual conflict). main dropped regexp with validProjectKey and added slices. The merged file uses slices and has no regexp use left, so it takes main's side.
  • internal/jirapoll/poller_idle_test.go. Two Options literals set JiraProject, which main replaced with JiraProjects. They now pass []string{"PROJ"}.

Everything else in the first merge merged without conflict. I read the merged Run, searchCandidates and filterLocked to check that the two changes combine as intended: the scoped search and its row de-duplication (uniqueIssues) run first, then filterLocked drops locked candidates and the ones with no new activity, then the random pick runs on the active set.

The merge also moves the behaviour suite from github-emulator 2026.11.20.1 to 2026.11.21, which has the fix for fullsend-ai/github-emulator#99, a job that fails before any of its steps run. That race failed two CI runs of #9918, in a different shard each time.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic
go test -race -count=1 ./internal/jirapoll/ ./pkg/behaviourtest/drivers/jiramock/ ./internal/config/ ./internal/forge/jira/ ./internal/poll/
go test -count=1 -run 'Jira|jira|Poll|poll' ./internal/cli/ ./pkg/behaviourtest/steps/ ./internal/scaffold/
go test -count=1 -run 'TestApplyCIServerTLSCA' ./internal/forge/gitlab/

All pass. The last one is the test that failed on the old base in the review of #9853; it passes after the merge.

After the second merge, with the timeout CI uses:

go test -race -count=1 -timeout 20m ./internal/jirapoll/... ./internal/config/... ./internal/forge/jira/... ./internal/jiradispatch/... ./internal/cli/...

All pass except TestPrepare_LocallyPresentImageSkipsPullButRunsPreflight in internal/cli, on my macOS machine only: it compares a temp-dir path with its resolved form, and macOS resolves /var to /private/var. The test and the code it covers are identical to main's.

About the red DCO check: it did not find an unsigned commit. Its message is that it "could not be evaluated because the complete pull request commit list could not be retrieved": the merge brings more than 250 of main's commits into this PR's commit list. The two merge commits, the only commits this PR adds, are signed off.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

waynesun09 and others added 30 commits November 20, 2026 15:59
The agents suite's custom-persona scenario (review-skill-overrides) needs
real inference and asserts a model-computed marker, so it cannot pass on
the emulator. Leave the capability off here; it stays in the agents
repository's live job.

Refs fullsend-ai#9755

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
run-job.sh pushes the agents checkout into the emulator as
fullsend-ai/agents main. A shallow checkout is rejected there with
"shallow update not allowed", so fetch the full history.

Refs fullsend-ai#9755

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…s-suite-emulator

ci(fullsend-ai#9755): run agents behaviour suite on GitHub emulator
At 0.170.0 codex opens the --output-last-message file before the first
turn, and a failed open or final write ends exec with exit 1 even after
a completed turn; 0.166.0 only warned. Nothing in the runner reads the
file, so drop the flag, its constant and its ClearIterationArtifacts
entry, and say in the Run bullet why there is no -o.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
Whitespace only: wrap the two egress binary identity bullets and the
re-check version line near 80 columns, as docs/contributing/
documentation.md asks for an edited paragraph.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
Add a "Moving to a new emulator release" subsection to the
behaviour testing guide's GitHub emulator section. It says where
the pin lives (EMULATOR_REPO / EMULATOR_REF in
behaviour-github-emulator.yml), its "<sha> # <tag>" format, the
check to run first (the whole workflow twice on a branch that
changes only EMULATOR_REF), that the agents repository's emulator
job follows the pin, and that a maintainer adds the change because
it edits a workflow file.

The EMULATOR_REF bump to 2026.11.20.2 is out of scope here; per the
issue it is added during review.

Note: pre-commit could not fetch hook repositories (TLS error), so
the applicable hooks were run directly: whitespace, end-of-file,
line-ending and merge-marker checks, gitleaks, lint-docs-links,
lint-broken-symlinks, and the lychee lint-md-links command. All
passed. `make lint-md-links` itself could not exec lychee in the
sandbox; the same lychee command run directly passed.

Closes fullsend-ai#9767

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026.11.20.2 answers the runner's GET jobrequests/{requestId}, keeps a
finished job's first end report, and gives no new job to a Busy poll.
This fixes a job handed to a runner whose previous worker was still
exiting failing before any step ran (fullsend-ai/github-emulator#99).

Validated twice on a branch of current main changing only EMULATOR_REF:
every shard and playback passed (86/86), and the agents job passed
11/11 with custom-persona skipped.

Refs fullsend-ai#9767

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Say how to run the two validation runs (a draft pull request, then Re-run
all jobs), keep the pin's tag comment in the branch, make the agents job a
hard requirement, say who lands the change, and turn the agents note into
a note rather than a step.

Refs fullsend-ai#9767

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…nment

The jira authorization entry's write and triage lists can now name an
environment variable with groups_from and accounts_from, so group and
account IDs stay out of a public repository's config.yaml.

Config and poller:
- The poller reads the variable on every poll. The value is a list
  separated by commas or newlines. An unset or empty variable grants
  no one, and the poller logs a warning that names the variable.
- Config loading rejects a role that sets both forms of one field, and
  an empty or invalid variable name.
- The poller never logs the values.
- The docs and the config test use a placeholder account ID.

Managed GitHub poll workflow:
- The managed caller forwards FULLSEND_JIRA_WRITE_GROUPS,
  FULLSEND_JIRA_WRITE_ACCOUNTS, FULLSEND_JIRA_TRIAGE_GROUPS and
  FULLSEND_JIRA_TRIAGE_ACCOUNTS to the poll step when config.yaml
  reads them. reusable-poll-jira.yml declares them as optional.
- A new job with no secrets sets the dispatch matrix output. GitHub
  drops a job output that contains a value of a secret the job has, and
  the matrix holds the acting account's ID, which can equal a list
  secret. The poll job saves the dispatch file as an artifact, after
  checking it for Jira credentials, including ones that JSON escaped.
  Each call names its artifact with a random suffix, so two calls in
  one run do not share it.

repos install:
- It fails before any write when config.yaml uses groups_from or
  accounts_from and the repository's jobs run a release that predates
  them, on any forge. Every job runs the CLI at the scaffold's ref, and
  an older CLI cannot load the config.
  repos status reports the same error.
  Without an upstream GitHub client, a stamped scaffold's ref is not
  checked.
  A vendored install runs its own binary, so it is checked only when
  the managed GitHub poll caller passes a list secret: that caller
  calls the upstream workflow at the pinned ref.
  A user-owned GitHub poll caller that pins a reusable-poll-jira.yml
  older than the keys fails too, unless the install is vendored: that
  workflow installs the CLI at its own ref.
- It warns about a variable name other than the four above, for the
  managed caller and for a user-owned caller of reusable-poll-jira.yml,
  because that workflow accepts only those four. It also warns about a
  user-owned caller that does not pass one of the four that the config
  names. It never writes or deletes these secrets.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Gwenneg Lepage <10584698+gwenneg@users.noreply.github.com>
…ent-emulator-pin

docs(fullsend-ai#9767): document moving the GitHub emulator pin
At 0.170.0 exec logs a third thread/items/list warning, when a page
returns an incomplete item, and returns without the backfill, so a
dropped completed item stays lost as after the other two. Count it with
the other backfill markers, and list it with them in the re-check row
and the testdata README.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The row still said the pinned untrusted entry must stop codex recording
its own trust level, which the Posture bullet no longer claims: at
0.170.0 the app server's trust write needs a requested cwd, and exec
names none. State the row's why as the Posture bullet does, and drop
the trust-write and thread-start sources it rested on.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
…on a PR

Add an "On a pull request" section near the top of
docs/guides/dev/behaviour-testing.md. It says which jobs make up the
required behaviour-github-emulator check, which artifact each job
uploads and what it holds, how to tell a failure in the change from
an emulator failure, when to re-run and where to file emulator bugs.
It documents the workflow_dispatch inputs (features, workers,
runners), the write access dispatch needs, and the rule to grow the
emulator instead of listing scenarios in not-sharded.txt.

Also update the intro table and "When to add a behaviour test" to
mention the emulator. Mark "Failure classification and
infrastructure retry" and two Prerequisites items as live-suite
only. Add a shards.txt step to the new-scenario checklist, and a
pointer to the check in CONTRIBUTING.md.

Left out, as the issue directs when evidence is missing:
- the troubleshooting table. The sandbox could not download the logs
  or artifacts of the two failed emulator runs, and their annotations
  carry only "Process completed with exit code 1.";
- the fork dispatch route. No fork run has been verified.
The gh workflow run command is marked as not run: the workflow has no
workflow_dispatch runs yet.

Pre-commit could not fetch its hook repositories (TLS verification
failure). The markdown hooks were run directly and passed:
end-of-file-fixer, trailing-whitespace, detect-private-key,
check-merge-conflict, mixed-line-ending, lint-broken-symlinks,
lint-docs-links and lychee (lint-md-links).

Closes fullsend-ai#9770

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, prose pass

Replace the unverified dispatch command with the fork route, run end to end.
Add a troubleshooting table keyed on error text from real failed runs.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
… not start

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…hing

workflow_dispatch needs the workflow on the default branch.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Assisted-by: Gemini (prose review), Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
…tor-check-docs

docs(fullsend-ai#9770): document the behaviour-github-emulator check on a PR
…r stack

run-job.sh started two heavy background jobs near the top: go-warm
(mint build and go test -c of the suite) and the sandbox image
pre-pull. Both ran while scripts/ci-stack.sh start brought up the
emulator on the same 4-vCPU VM, slowing its imports and migrations
past the 30 s readiness limit, so some shards failed with "the
emulator did not start" before any scenario ran.

Both jobs now start right after ci-stack.sh start returns, before
the stack CA variables are exported, so they run in the same
environment as before. go_warm_pid, prepull_pid and their later
waits are unchanged; the sandbox image list is still computed in
step 0b. The prepull launch checks AGENTS_SEED first, because
sandbox_images is unset when the agents are not seeded and the
script runs with set -u. build_mint stays defined at the top for the
step 3 fallback. The comments now say why the jobs start after the
stack.

Verified with bash -n and shellcheck 0.10.0 (-x -e
SC1091,SC2001,SC2016). Note: pre-commit could not fetch its hook
repositories (TLS failure in the sandbox); shellcheck, gitleaks and
the whitespace, end-of-file and private-key checks were run directly
and passed. The full behaviour-github-emulator runs need the CI VM
and were not run here.

Closes fullsend-ai#9772

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-warm-prepull

ci(fullsend-ai#9772): start emulator-job Go build and image pull after stack
…ting row

Emulator 2026.11.21 changes the message ci-stack.sh start prints
when the emulator does not start. The troubleshooting table in
docs/guides/dev/behaviour-testing.md keyed a row on the old text,
which no longer appears once behaviour-github-emulator uses that
release.

Replace the row with two rows, one per new message: no answer
before the start deadline (with a pointer to the Startup: lines
in stack/emulator.log), and the emulator process exiting early.
The message text was checked against scripts/ci-stack.sh at the
emulator's 2026.11.21 tag.

Note: pre-commit could not fetch remote hook repositories in the
sandbox (TLS verification failure). The applicable hooks were run
directly instead: lint-docs-links and lint-md-links (lychee) pass,
and the file has no trailing whitespace, CRLF, or conflict markers,
and ends with a newline.

Closes fullsend-ai#9775
2026.11.21 waits for the emulator to start by deadline
(CI_STACK_START_TIMEOUT, default 120 s, was about 30 s) and logs how
long each startup step took. It also labels runners from the host's
Ubuntu release, gives the ci-stack TLS CA the key usage extensions
strict Python checks need, and answers a deleted job's end report
without a 500.

The troubleshooting rows now show the emulator log path a job prints,
and the intro says the rows are error text a failed run prints.

Assisted-by: Claude (fix), Gemini (review)
Signed-off-by: Wayne Sun <gsun@redhat.com>
…tor-start-failure-row

ci(fullsend-ai#9775): pin the GitHub emulator to 2026.11.21 and update the start-failure rows
Since ORT 1.29 the Linux libonnxruntime.so starts a 1DS telemetry
uploader during environment init, creating an offline event store and
a persistent device ID under ~/.cache/Microsoft. hugot calls
ort.DisableTelemetry() only after InitializeEnvironment(), which mutes
events but does not stop the uploader. ORT skips the uploader only when
ORT_DISABLE_TELEMETRY (or a CI variable) is set before init.

- internal/security/mlscan_ort.go: initMLScanner() sets
  ORT_DISABLE_TELEMETRY=1 next to HF_HUB_OFFLINE, before
  hugot.NewORTSession, covering every ORT build of the binary.
- images/runner/Containerfile: ENV ORT_DISABLE_TELEMETRY=1 for
  anything else in the image that loads ORT.
- internal/security/mlscan_ort_test.go: ORT-tagged test asserting
  initMLScanner sets the variable (session creation fails on a
  missing library path, so the shared ORT environment is untouched).

Verification: go build ./..., go vet ./... and go vet -tags ORT
./internal/security/ pass (the ORT build compiles; linking needs
libtokenizers, absent in the sandbox, so the ORT-tagged tests were
not run). go test ./internal/security/ has SSRF DNS failures that
also occur on main (sandbox resolver). pre-commit could not fetch
hook repos; hooks were run directly. semgrep was skipped (ruleset
download blocked) and gitleaks was covered by scan-secrets.

Closes fullsend-ai#9777
…runner smoke test

The benign ML scan now runs with ORT_DISABLE_TELEMETRY unset, so it
exercises the opt-out the binary sets itself, not only the image ENV.
After both scans the smoke test fails if ~/.cache/Microsoft exists: ORT
writes its device ID and event store there when the telemetry uploader
starts. The smoke container gets no CI variables, which would otherwise
suppress the uploader and hide a regression.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…y off in tests

TestInitMLScanner_DisablesORTTelemetry now restores mlScanner,
mlSession and mlScannerErr on cleanup instead of setting them to nil, so
a later RunMLScan in the same run sees the state it had before. It points
ORT_LIB_PATH at a missing directory, matching how hugot reads the option.

TestMain in the ORT integration suite sets ORT_DISABLE_TELEMETRY before
it starts a real session, so a local `go test -tags ORT` run does not
start the uploader either.

Assisted-by: Claude (fix), DeepSeek (review)
Signed-off-by: Wayne Sun <gsun@redhat.com>
…er starts ORT

RunMLScan fails open: if the session cannot start it prints "ML scanner
unavailable" and still reports no findings. Assert that warning is
absent, so the telemetry check after it cannot pass without ORT running.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…ces change

The runner-image smoke test is the only CI job that exercises the ORT
scanner, telemetry opt-out included: lint.yml runs go test without
-tags ORT. Add internal/security/mlscan*.go and onnxguard*.go to the
push and pull_request path filters so a change there gets the smoke test.

Assisted-by: Claude (fix), DeepSeek (review)
Signed-off-by: Wayne Sun <gsun@redhat.com>
hugot returns before it initialises ORT: either another session is
active or the library path is missing. Say both.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
main's project-set refactor (fullsend-ai#9883, cf628ed) and this branch both
change internal/jirapoll/poller.go.

- The import block was the only textual conflict. main dropped regexp
  together with validProjectKey and added slices; the merged file uses
  slices and has no regexp use left.
- Two Options literals in poller_idle_test.go set JiraProject, which
  main replaced with JiraProjects.

The activity filter and the project-set search merge as written: the
scoped search and its row de-duplication run first, and filterLocked
then drops locked and idle candidates.

Signed-off-by: guy oron <goron@redhat.com>
@guyoron1
guyoron1 requested a review from a team as a code owner November 27, 2026 02:18
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Merge main into Jira idle-skip branch and reconcile project-set polling

✨ Enhancement 🐞 Bug fix 🧪 Tests 📝 Documentation ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Merges main’s Jira project-set refactor with the branch’s idle-candidate filtering.
Diagram

graph TD
  A["Project set"] --> B["Scoped JQL"] --> C["Jira search"] --> D["Deduplicate issues"] --> E["Filter idle issues"] --> F["Select active issues"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Review the merge against its first parent
  • ➕ Isolates conflict resolutions from unrelated changes inherited from main
  • ➕ Makes the Jira integration easier to verify
  • ➖ Still requires CI coverage of the merged tree

Recommendation: Keep the merge if it is needed to unblock #9758, but review its first-parent diff separately from this broad supplied diff. In particular, verify project-scoped search and deduplication precede the existing idle filter, and that both idle-test option literals use JiraProjects.

Files changed (355) +47639 / -5574

Enhancement (89) +11916 / -722
poller.goCombine scoped project-set search with active-candidate selection +0/-0

Combine scoped project-set search with active-candidate selection

• Validates project keys and JQL before requesting Jira, deduplicates search results, and keeps project-role rosters separate. The existing locked-and-idle filter remains before random selection.

internal/jirapoll/poller.go

types.goRequire project-set poller options +2/-2

Require project-set poller options

• Replaces the single JiraProject option with JiraProjects and documents JQL as a scoped predicate.

internal/jirapoll/types.go

issue_targets.goFormat JQL for multiple projects +32/-6

Format JQL for multiple projects

• Adds project-set scoping and exports project-key and JQL-parenthesis validation for the poller.

internal/config/issue_targets.go

poll.goPass scoped polling and resolved Jira authorization options +40/-19

Pass scoped polling and resolved Jira authorization options

• Passes a one-project set and raw query to the poller; resolves authorization lists from named environment variables.

internal/cli/poll.go

config.goSupport environment-backed Jira actor lists +99/-5

Support environment-backed Jira actor lists

• Adds groups_from and accounts_from with validation and per-run resolution.

internal/config/config.go

jira_poll.goReconcile Jira authorization environment support +119/-11

Reconcile Jira authorization environment support

• Tracks named authorization variables and checks compatibility with installed workflows before convergence.

internal/repos/jira_poll.go

reusable-poll-jira.ymlForward Jira authorization secrets and protect dispatch output +115/-15

Forward Jira authorization secrets and protect dispatch output

• Declares authorization secrets and separates credential-bearing polling from dispatch-matrix output.

.github/workflows/reusable-poll-jira.yml

reusable-dispatch.ymlExpand reusable dispatch for fork PRs +576/-269

Expand reusable dispatch for fork PRs

• Resolves fork PRs through trusted API data before privileged dispatch and revises dispatch-job wiring.

.github/workflows/reusable-dispatch.yml

dispatch.goExtend dispatch CLI handling +22/-3

Extend dispatch CLI handling

• Adds dispatch support for changed event paths.

internal/cli/dispatch.go

lint.goExtend CLI linting +6/-0

Extend CLI linting

• Adds lint validation for changed CLI configuration.

internal/cli/lint.go

poll_jira_gitlab.goPass GitLab Jira poll options +1/-1

Pass GitLab Jira poll options

• Adapts GitLab polling to revised Jira option construction.

internal/cli/poll_jira_gitlab.go

prepare.goAdd sandbox preparation command +600/-0

Add sandbox preparation command

• Adds image, gateway and sandbox preflight checks with structured outcomes.

internal/cli/prepare.go

prepareartifacts.goAdjust preparation artifacts +17/-5

Adjust preparation artifacts

• Changes preparation-artifact handling.

internal/cli/prepareartifacts.go

repos.goExtend repository CLI +163/-38

Extend repository CLI

• Adds repository-management flows for additional forge support.

internal/cli/repos.go

repos_forgejo.goAdd Forgejo repository commands +197/-0

Add Forgejo repository commands

• Implements Forgejo-specific repository CLI operations.

internal/cli/repos_forgejo.go

repos_gitlab.goRevise GitLab repository CLI +7/-8

Revise GitLab repository CLI

• Adapts GitLab repository management behavior.

internal/cli/repos_gitlab.go

reviewdedup.goAdd review deduplication +327/-0

Add review deduplication

• Introduces logic to avoid redundant review work.

internal/cli/reviewdedup.go

root.goRegister CLI commands +2/-0

Register CLI commands

• Registers additional commands in the root CLI.

internal/cli/root.go

run_agents_repo_forgejo.goRun repository agents on Forgejo +525/-0

Run repository agents on Forgejo

• Adds Forgejo-specific repository agent execution.

internal/cli/run_agents_repo_forgejo.go

run_image_pull.goRevise run image pulling +77/-21

Revise run image pulling

• Changes image acquisition and preflight behavior.

internal/cli/run_image_pull.go

runtime_prompt.goAdjust runtime prompting +2/-1

Adjust runtime prompting

• Changes CLI runtime prompt handling.

internal/cli/runtime_prompt.go

vault_secrets.goLoad Vault-backed CLI secrets +20/-0

Load Vault-backed CLI secrets

• Adds helpers for runner-secret integration.

internal/cli/vault_secrets.go

managed.goAdjust managed configuration +4/-4

Adjust managed configuration

• Updates managed configuration processing.

internal/config/managed.go

event.goExtend dispatch event metadata +9/-0

Extend dispatch event metadata

• Adds event data needed by dispatch routing.

internal/dispatch/event.go

router.goRevise dispatch routing +92/-49

Revise dispatch routing

• Extends event routing and dispatch decisions.

internal/dispatch/router.go

acquire.goAdd entity acquisition pipeline +503/-0

Add entity acquisition pipeline

• Introduces provider reads with explicit coverage and revision tracking.

internal/entityacquire/acquire.go

plan.goPlan entity reads +392/-0

Plan entity reads

• Adds query planning and proof requirements for entity acquisition.

internal/entityacquire/plan.go

actors.goModel entity actors +212/-0

Model entity actors

• Adds actor representation for normalized entity views.

internal/entityview/actors.go

entityview.goBuild normalized entity views +383/-0

Build normalized entity views

• Adds entity-view construction and field handling.

internal/entityview/entityview.go

gate.goGate entity-view decisions +486/-0

Gate entity-view decisions

• Adds decision handling for entity facts and coverage.

internal/entityview/gate.go

forge.goExtend forge interfaces +30/-8

Extend forge interfaces

• Adds common forge operations for additional provider support.

internal/forge/forge.go

actions.goImplement Forgejo Actions API +294/-0

Implement Forgejo Actions API

• Adds Forgejo workflow and action operations.

internal/forge/forgejo/actions.go

client.goAdd Forgejo API client +473/-0

Add Forgejo API client

• Introduces Forgejo authentication and request handling.

internal/forge/forgejo/client.go

git.goImplement Forgejo Git operations +133/-0

Implement Forgejo Git operations

• Adds Git-facing Forgejo operations.

internal/forge/forgejo/git.go

issues.goImplement Forgejo issues API +419/-0

Implement Forgejo issues API

• Adds Forgejo issue operations.

internal/forge/forgejo/issues.go

oauth.goImplement Forgejo OAuth +392/-0

Implement Forgejo OAuth

• Adds Forgejo OAuth authentication handling.

internal/forge/forgejo/oauth.go

pulls.goImplement Forgejo pull requests +730/-0

Implement Forgejo pull requests

• Adds Forgejo pull-request API operations.

internal/forge/forgejo/pulls.go

entity_adapter.goAdapt GitHub entities +1271/-0

Adapt GitHub entities

• Adds GitHub reads for normalized entity acquisition.

internal/forge/github/entity_adapter.go

authorize.goAdjust harness authorization +0/-0

Adjust harness authorization

• Changes dispatch authorization handling.

internal/harnessdispatch/authorize.go

forgejoevent.goParse Forgejo events +0/-0

Parse Forgejo events

• Adds Forgejo event input handling.

internal/harnessdispatch/input/forgejoevent.go

auth.goUse project-specific Jira roles +0/-0

Use project-specific Jira roles

• Adapts actor authorization to per-project role rosters.

internal/jirapoll/auth.go

convert.goAdapt Jira issue conversion +0/-0

Adapt Jira issue conversion

• Updates event conversion for project-set polling.

internal/jirapoll/convert.go

event.goExtend normalized event +1/-0

Extend normalized event

• Adds normalized event data.

internal/normevent/event.go

poll.goAdjust event polling +16/-1

Adjust event polling

• Changes event polling behavior.

internal/poll/poll.go

webhook.goAdjust webhook polling +4/-1

Adjust webhook polling

• Updates webhook event handling.

internal/poll/webhook.go

converge.goRevise repository convergence +153/-96

Revise repository convergence

• Integrates new repository and infrastructure convergence paths.

internal/repos/converge.go

drift.goExtend drift detection +9/-4

Extend drift detection

• Adjusts detection of managed repository drift.

internal/repos/drift.go

forgejo.goAdd Forgejo repository integration +526/-0

Add Forgejo repository integration

• Implements Forgejo-specific repository management.

internal/repos/forgejo.go

forgejo_lifecycle.goManage Forgejo repository lifecycle +831/-0

Manage Forgejo repository lifecycle

• Adds install and lifecycle operations for Forgejo repositories.

internal/repos/forgejo_lifecycle.go

forgejo_workflows.goManage Forgejo workflows +550/-0

Manage Forgejo workflows

• Adds Forgejo workflow reconciliation.

internal/repos/forgejo_workflows.go

github_jira_poll.goForward Jira list secrets on GitHub +169/-20

Forward Jira list secrets on GitHub

• Wires supported authorization variables into managed Jira poll callers.

internal/repos/github_jira_poll.go

gitlab_existing_wif.goAdjust existing GitLab WIF handling +3/-3

Adjust existing GitLab WIF handling

• Updates reuse of existing workload identity settings.

internal/repos/gitlab_existing_wif.go

gitlab_jira_poll.goAdapt GitLab Jira polling +1/-1

Adapt GitLab Jira polling

• Updates GitLab poll integration.

internal/repos/gitlab_jira_poll.go

gitlab_membership_convergence.goConverge GitLab membership +81/-0

Converge GitLab membership

• Adds managed GitLab membership reconciliation.

internal/repos/gitlab_membership_convergence.go

gitlab_pipeline_var_optin.goManage GitLab pipeline-variable opt-in +79/-0

Manage GitLab pipeline-variable opt-in

• Adds configuration for pipeline-variable restrictions.

internal/repos/gitlab_pipeline_var_optin.go

gitlab_pipeline_var_restriction.goRevise pipeline-variable restrictions +18/-1

Revise pipeline-variable restrictions

• Updates GitLab variable restriction handling.

internal/repos/gitlab_pipeline_var_restriction.go

gitlab_poller_generation.goAdjust GitLab poller generation +6/-2

Adjust GitLab poller generation

• Updates generated GitLab poller configuration.

internal/repos/gitlab_poller_generation.go

gitlab_trigger_account.goRevise GitLab trigger account +17/-5

Revise GitLab trigger account

• Updates trigger-account selection and setup.

internal/repos/gitlab_trigger_account.go

gitlab_trigger_dispatch_gate.goAdjust GitLab trigger gate +4/-3

Adjust GitLab trigger gate

• Changes trigger dispatch containment behavior.

internal/repos/gitlab_trigger_dispatch_gate.go

gitlab_webhook.goAdjust GitLab webhook setup +1/-1

Adjust GitLab webhook setup

• Updates GitLab webhook reconciliation.

internal/repos/gitlab_webhook.go

gitlab_webhook_poller.goRevise GitLab webhook poller +6/-2

Revise GitLab webhook poller

• Adjusts webhook-poller configuration.

internal/repos/gitlab_webhook_poller.go

glob_intersect.goDetect intersecting globs +217/-0

Detect intersecting globs

• Adds glob-intersection logic for repository configuration.

internal/repos/glob_intersect.go

infrastructure.goExtend infrastructure reconciliation +14/-4

Extend infrastructure reconciliation

• Adds infrastructure handling for new repository setups.

internal/repos/infrastructure.go

install.goRevise repository installation +64/-40

Revise repository installation

• Integrates additional installation and scaffold handling.

internal/repos/install.go

manifest.goExtend repository manifest +119/-15

Extend repository manifest

• Adds component tracking for revised repository installation.

internal/repos/manifest.go

manifest_set.goAdjust manifest sets +7/-3

Adjust manifest sets

• Updates managed component sets.

internal/repos/manifest_set.go

openai_wif.goAdjust OpenAI WIF setup +6/-1

Adjust OpenAI WIF setup

• Updates workload-identity reconciliation.

internal/repos/openai_wif.go

probe.goExtend repository probes +33/-11

Extend repository probes

• Adds discovery for revised repository components.

internal/repos/probe.go

remote_scaffold.goExtend remote scaffolding +17/-0

Extend remote scaffolding

• Adds remote scaffold handling.

internal/repos/remote_scaffold.go

status.goExtend repository status +31/-0

Extend repository status

• Reports additional managed repository state.

internal/repos/status.go

uninstall.goAdjust repository uninstall +1/-1

Adjust repository uninstall

• Updates uninstall behavior for managed components.

internal/repos/uninstall.go

codex_bootstrap.goRevise Codex bootstrap +6/-15

Revise Codex bootstrap

• Updates Codex initialization behavior.

internal/runtime/codex_bootstrap.go

codex_config.goRevise Codex configuration +6/-6

Revise Codex configuration

• Adjusts Codex runtime configuration.

internal/runtime/codex_config.go

fullsend-codex-hook.pyAdjust Codex hook +1/-1

Adjust Codex hook

• Updates a Codex hook behavior.

internal/runtime/codex_hook/fullsend-codex-hook.py

gateway-token.shRevise gateway token hook +5/-2

Revise gateway token hook

• Updates gateway token acquisition.

internal/runtime/codex_hook/gateway-token.sh

openai-token.shRevise OpenAI token hook +5/-2

Revise OpenAI token hook

• Updates OpenAI token acquisition.

internal/runtime/codex_hook/openai-token.sh

codex_personas.goRevise Codex personas +2/-2

Revise Codex personas

• Updates persona configuration.

internal/runtime/codex_personas.go

codex_redact.goAdjust Codex redaction +1/-1

Adjust Codex redaction

• Updates redaction handling.

internal/runtime/codex_redact.go

codex_run.goRevise Codex execution +3/-7

Revise Codex execution

• Changes Codex invocation behavior.

internal/runtime/codex_run.go

codex_subagents.goAdjust Codex subagents +2/-1

Adjust Codex subagents

• Updates subagent handling.

internal/runtime/codex_subagents.go

pi.goAdjust Pi runtime +1/-1

Adjust Pi runtime

• Updates Pi runtime configuration.

internal/runtime/pi.go

pi_bootstrap.goRevise Pi bootstrap +5/-1

Revise Pi bootstrap

• Updates Pi initialization.

internal/runtime/pi_bootstrap.go

pi_run.goAdjust Pi execution +1/-1

Adjust Pi execution

• Updates Pi run configuration.

internal/runtime/pi_run.go

installfiles.goExtend installed scaffold files +64/-0

Extend installed scaffold files

• Adds managed files for new workflow paths.

internal/scaffold/installfiles.go

jira_poll.goGenerate Jira authorization-secret forwarding +31/-2

Generate Jira authorization-secret forwarding

• Adds supported authorization variables to generated poll callers.

internal/scaffold/jira_poll.go

scaffold.goExtend scaffold components +17/-0

Extend scaffold components

• Adds scaffold support for new repository integrations.

internal/scaffold/scaffold.go

vendorhistory.goAdjust vendor history +1/-0

Adjust vendor history

• Updates vendor-history tracking.

internal/scaffold/vendorhistory.go

mlscan_ort.goAdjust ONNX Runtime scanning +2/-0

Adjust ONNX Runtime scanning

• Updates model-scanning behavior.

internal/security/mlscan_ort.go

vault.goExtend Vault secret access +7/-0

Extend Vault secret access

• Adds Vault secret handling for runner workflows.

internal/vaultsecrets/vault.go

Bug fix (1) +0 / -0
github.goRetry transient GitHub ref-update failures +0/-0

Retry transient GitHub ref-update failures

• Treats eligible ref-update 422 responses as retryable races.

internal/forge/github/github.go

Refactor (5) +2694 / -1056
run.goExtract run-command responsibilities +55/-169

Extract run-command responsibilities

• Moves run behavior into focused helpers and updates command wiring.

internal/cli/run.go

run_compose.goCompose run dependencies +192/-0

Compose run dependencies

• Extracts run construction and dependency assembly.

internal/cli/run_compose.go

safedownload.goSeparate safe repository downloads +1243/-0

Separate safe repository downloads

• Adds untrusted-tree validation, sanitization and publication handling.

internal/sandbox/safedownload.go

sandbox.goExtract sandbox download responsibilities +78/-887

Extract sandbox download responsibilities

• Moves download and snapshot logic into focused files.

internal/sandbox/sandbox.go

snapshot.goSeparate trusted repository snapshots +1126/-0

Separate trusted repository snapshots

• Adds capture and restoration of trusted repository state.

internal/sandbox/snapshot.go

Tests (124) +23099 / -2969
poller_idle_test.goAdapt idle-filter fixtures to project sets +0/-0

Adapt idle-filter fixtures to project sets

• Changes two poller option literals from JiraProject to a one-element JiraProjects slice.

internal/jirapoll/poller_idle_test.go

multi_project_test.goTest project-set polling +0/-0

Test project-set polling

• Covers project scope, search results and per-project role behavior.

internal/jirapoll/multi_project_test.go

fork-bash-routing.featureTest fork dispatch routing +27/-8

Test fork dispatch routing

• Extends fork bash-routing behavior scenarios.

e2e/behaviour/features/dispatch/fork-bash-routing.feature

fork-dispatch.featureAdjust fork dispatch scenarios +3/-3

Adjust fork dispatch scenarios

• Updates fork-dispatch behavior expectations.

e2e/behaviour/features/dispatch/fork-dispatch.feature

vault-runner-secrets.featureTest Vault runner secrets +243/-0

Test Vault runner secrets

• Adds end-to-end scenarios for runner-secret delivery.

e2e/behaviour/features/platform/vault-runner-secrets.feature

shards_test.goTest behavior shard assignments +391/-0

Test behavior shard assignments

• Adds validation for sharded behavior-test coverage.

e2e/behaviour/shards_test.go

setup-org_test.shTest organization setup +205/-2

Test organization setup

• Extends shell coverage of pool provisioning.

e2e/org-pool/setup-org_test.sh

podman-prune_test.shTest Podman pruning +115/-1

Test Podman pruning

• Extends pruning regression tests.

hack/gitlab-runner-vm/podman-prune_test.sh

workflow_triggers_test.pyTest workflow triggers +14/-6

Test workflow triggers

• Updates validation for workflow event triggers.

hack/workflow_triggers_test.py

dispatch_forgejo_test.goTest Forgejo dispatch CLI +111/-0

Test Forgejo dispatch CLI

• Adds Forgejo-specific dispatch tests.

internal/cli/dispatch_forgejo_test.go

fetchserver_test.goAdjust fetch-server tests +17/-4

Adjust fetch-server tests

• Updates fetch-server test expectations.

internal/cli/fetchserver_test.go

jira_lifecycle_test.goAdapt Jira lifecycle tests +3/-3

Adapt Jira lifecycle tests

• Updates Jira lifecycle fixtures for revised configuration.

internal/cli/jira_lifecycle_test.go

poll_jira_config_test.goTest Jira poll configuration +14/-3

Test Jira poll configuration

• Updates tests for query and project-set option wiring.

internal/cli/poll_jira_config_test.go

poll_jira_gitlab_test.goAdapt GitLab Jira poll tests +1/-1

Adapt GitLab Jira poll tests

• Updates tests for revised poll options.

internal/cli/poll_jira_gitlab_test.go

poll_test.goExtend CLI polling tests +46/-15

Extend CLI polling tests

• Tests revised polling and authorization option handling.

internal/cli/poll_test.go

postreview_test.goRevise post-review tests +17/-84

Revise post-review tests

• Updates review-posting test coverage.

internal/cli/postreview_test.go

prepare_test.goTest sandbox preparation +887/-0

Test sandbox preparation

• Covers prepare outcomes, failures and cleanup.

internal/cli/prepare_test.go

prepareartifacts_test.goTest preparation artifacts +4/-0

Test preparation artifacts

• Extends preparation-artifact test coverage.

internal/cli/prepareartifacts_test.go

repos_forgejo_test.goTest Forgejo repository commands +747/-0

Test Forgejo repository commands

• Covers Forgejo repository CLI operations.

internal/cli/repos_forgejo_test.go

repos_gitlab_pipeline_var_optin_test.goTest GitLab pipeline-variable opt-in +117/-0

Test GitLab pipeline-variable opt-in

• Covers GitLab pipeline variable configuration.

internal/cli/repos_gitlab_pipeline_var_optin_test.go

repos_gitlab_trigger_containment_selection_test.goTest GitLab trigger selection +50/-0

Test GitLab trigger selection

• Covers containment-aware trigger selection.

internal/cli/repos_gitlab_trigger_containment_selection_test.go

repos_inference_auth_test.goAdapt inference-auth CLI tests +3/-3

Adapt inference-auth CLI tests

• Updates authentication configuration fixtures.

internal/cli/repos_inference_auth_test.go

repos_managed_config_test.goExtend managed-config tests +6/-0

Extend managed-config tests

• Adds repository CLI managed-config coverage.

internal/cli/repos_managed_config_test.go

reviewdedup_test.goTest review deduplication +262/-0

Test review deduplication

• Covers review-deduplication behavior.

internal/cli/reviewdedup_test.go

run_agents_repo_forgejo_test.goTest Forgejo agent runs +692/-0

Test Forgejo agent runs

• Covers Forgejo repository agent execution.

internal/cli/run_agents_repo_forgejo_test.go

run_gateway_route_test.goTest gateway routing +10/-0

Test gateway routing

• Adds gateway-route regression coverage.

internal/cli/run_gateway_route_test.go

run_image_pull_test.goTest image-pull changes +191/-12

Test image-pull changes

• Extends image-pull and failure-path coverage.

internal/cli/run_image_pull_test.go

run_openai_test.goAdjust OpenAI run test +1/-1

Adjust OpenAI run test

• Updates one OpenAI run expectation.

internal/cli/run_openai_test.go

run_test.goReorganize run tests +22/-170

Reorganize run tests

• Updates tests alongside run-command extraction.

internal/cli/run_test.go

runtime_binaries_test.goUpdate runtime binary tests +8/-8

Update runtime binary tests

• Adjusts expected runtime binary versions.

internal/cli/runtime_binaries_test.go

vault_secrets_test.goTest Vault CLI secrets +28/-0

Test Vault CLI secrets

• Tests Vault-secret CLI behavior.

internal/cli/vault_secrets_test.go

config_test.goTest Jira actor-list resolution +98/-2

Test Jira actor-list resolution

• Covers environment-backed lists and validation.

internal/config/config_test.go

effective_test.goAdjust effective-config tests +5/-1

Adjust effective-config tests

• Updates effective configuration expectations.

internal/config/effective_test.go

jira_tracking_test.goTest Jira tracking queries +19/-0

Test Jira tracking queries

• Adds Jira query and scoping tests.

internal/config/jira_tracking_test.go

router_test.goTest revised routing +129/-0

Test revised routing

• Adds dispatch-router regression tests.

internal/dispatch/router_test.go

acquire_test.goTest entity acquisition +530/-0

Test entity acquisition

• Covers entity reads, partial coverage and failures.

internal/entityacquire/acquire_test.go

eligibility_test.goTest acquisition eligibility +53/-0

Test acquisition eligibility

• Covers eligibility decisions for acquired entities.

internal/entityacquire/eligibility_test.go

plan_test.goTest entity read plans +168/-0

Test entity read plans

• Covers plan generation and proof requirements.

internal/entityacquire/plan_test.go

entityview_test.goTest normalized entity views +1397/-0

Test normalized entity views

• Extensively covers entity-view construction.

internal/entityview/entityview_test.go

actions_test.goTest Forgejo Actions API +316/-0

Test Forgejo Actions API

• Covers Forgejo action operations.

internal/forge/forgejo/actions_test.go

client_bundle_test.goTest Forgejo client bundles +151/-0

Test Forgejo client bundles

• Covers bundled Forgejo client behavior.

internal/forge/forgejo/client_bundle_test.go

client_test.goTest Forgejo client +279/-0

Test Forgejo client

• Covers Forgejo client operations and failures.

internal/forge/forgejo/client_test.go

git_test.goTest Forgejo Git operations +161/-0

Test Forgejo Git operations

• Covers Forgejo Git API behavior.

internal/forge/forgejo/git_test.go

issues_test.goTest Forgejo issues API +692/-0

Test Forgejo issues API

• Covers issue operations and failures.

internal/forge/forgejo/issues_test.go

oauth_test.goTest Forgejo OAuth +465/-0

Test Forgejo OAuth

• Covers OAuth flows and error cases.

internal/forge/forgejo/oauth_test.go

pulls_test.goTest Forgejo pull requests +669/-0

Test Forgejo pull requests

• Covers Forgejo pull-request operations.

internal/forge/forgejo/pulls_test.go

entity_adapter_test.goTest GitHub entity adapter +0/-0

Test GitHub entity adapter

• Covers normalized GitHub entity reads.

internal/forge/github/entity_adapter_test.go

github_comment_test.goAdjust GitHub comment tests +0/-0

Adjust GitHub comment tests

• Updates comment operation coverage.

internal/forge/github/github_comment_test.go

github_test.goTest GitHub ref retries +0/-0

Test GitHub ref retries

• Adds or adjusts GitHub API regression tests.

internal/forge/github/github_test.go

ca_test.goAdjust GitLab CA test +0/-0

Adjust GitLab CA test

• Updates GitLab TLS CA coverage.

internal/forge/gitlab/ca_test.go

core_test.goAdjust harness-dispatch tests +0/-0

Adjust harness-dispatch tests

• Updates dispatch-core regression coverage.

internal/harnessdispatch/core_test.go

forgejoevent_test.goTest Forgejo event parsing +0/-0

Test Forgejo event parsing

• Covers Forgejo dispatch inputs.

internal/harnessdispatch/input/forgejoevent_test.go

auth_test.goTest project-specific Jira authorization +0/-0

Test project-specific Jira authorization

• Updates actor-authorization tests.

internal/jirapoll/auth_test.go

convert_test.goTest Jira conversion +0/-0

Test Jira conversion

• Updates conversion coverage.

internal/jirapoll/convert_test.go

gitlab_target_test.goAdapt GitLab-target poll tests +0/-0

Adapt GitLab-target poll tests

• Updates GitLab-target polling fixtures.

internal/jirapoll/gitlab_target_test.go

issue_type_test.goAdapt issue-type tests +0/-0

Adapt issue-type tests

• Updates issue-type polling fixtures.

internal/jirapoll/issue_type_test.go

poller_invalid_id_test.goAdapt invalid-ID tests +0/-0

Adapt invalid-ID tests

• Updates invalid-ID polling fixtures.

internal/jirapoll/poller_invalid_id_test.go

poller_test.goExtend Jira poller tests +0/-0

Extend Jira poller tests

• Adapts existing tests to project sets and scoped JQL.

internal/jirapoll/poller_test.go

fork_mr_review_test.goTest fork merge-request review +105/-0

Test fork merge-request review

• Adds fork review regression coverage.

internal/poll/fork_mr_review_test.go

forgejo_review_test.goTest Forgejo review setup +94/-0

Test Forgejo review setup

• Adds Forgejo review configuration tests.

internal/repos/forgejo_review_test.go

forgejo_test.goTest Forgejo repository integration +815/-0

Test Forgejo repository integration

• Covers Forgejo repository operations.

internal/repos/forgejo_test.go

forgejo_workflows_test.goTest Forgejo workflow management +675/-0

Test Forgejo workflow management

• Covers workflow reconciliation.

[Comment truncated to fit github's 65,536-char limit.]

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (post-script /home/runner/work/fullsend/fullsend/.fullsend/.fullsend-cache/resources/sha256/f2b050899914470a4d07f8ad0c59fa9711fac1dfe3744d68f62e6abafe61c52f/scripts/post-review.sh failed: exit status 1) · Started 2:21 AM UTC · Completed 2:23 AM UTC

Commit: 80a9eec · View workflow run →

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

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Review

Reason: token-limit

This PR was NOT reviewed. Do not count this as an approval.

Previous run

Review

Reason: token-limit

This PR was NOT reviewed. Do not count this as an approval.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://648d29d1-site.fullsend-ai.workers.dev

Commit: 968956521e179682680126e6655b794cb17583d6

@qodo-code-review

qodo-code-review Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (8) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (2) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. A failed runner removal is skipped 🐞 Bug ☼ Reliability
Description
Stack.Teardown records the runner ID in removed before checking whether the force-removal
request succeeded. If stopping and force-removing the runner both fail, the later removal pass skips
that still-present runner while continuing with the job-container snapshot.
Code

pkg/behaviourtest/drivers/install/forgejostack/stack.go[R612-615]

+				removed[c.id] = true
+				if err := s.cfg.Engine.RemoveContainer(ctx, c.id); err != nil {
+					errs = append(errs, err)
+				}
Relevance

●●● Strong

Marking runner removed before the removal call is an obvious local bug; no contrary precedent found.

PR-#6217

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The runner is marked removed before the removal API call; the later loop skips every marked ID
without checking whether it was actually removed.

pkg/behaviourtest/drivers/install/forgejostack/stack.go[605-616]
pkg/behaviourtest/drivers/install/forgejostack/stack.go[634-643]

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

## Issue description
A failed force-removal is recorded as successful, so the ordered cleanup pass skips the runner.
## Fix Focus Areas
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[605-616]
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[634-643]
## Recommended Fix
Add the runner ID to the removed set only after RemoveContainer succeeds; let the ordered pass attempt removal if the earlier request failed.

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

Dismiss ↗ | View ↗


2. Fork labels can start unexpected reviews 🐞 Bug ≡ Correctness
Description
Resolve fork pull request for workflow_run maps every older open pull request to synchronize
without establishing which pull-request action started the fork-controlled stub. A fork author who
is authorized for review can add a label trigger to their stub and cause a label event to enter the
review and deduplication path.
Code

.github/workflows/reusable-dispatch.yml[337]

+                ACTION="synchronize"
Relevance

●●● Strong

Same fork label/stub authorization block in reusable-dispatch.yml was accepted in PR 9849
(label-time head and authorization findings).

PR-#9849

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The resolver reads the run's event but not its action, and its own comments acknowledge that the
fork controls the stub and can start it on label events. The open-state fallback routes such runs as
synchronize.

.github/workflows/reusable-dispatch.yml[188-236]
.github/workflows/reusable-dispatch.yml[250-253]
.github/workflows/reusable-dispatch.yml[329-338]
.github/workflows/reusable-dispatch.yml[662-675]

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

## Issue description
Fork-controlled stub runs can represent pull-request actions other than synchronize, but the resolver classifies any older open PR as synchronize.
## Fix Focus Areas
- .github/workflows/reusable-dispatch.yml[229-253]
- .github/workflows/reusable-dispatch.yml[329-338]
## Recommended Fix
Establish trustworthy provenance for the triggering action before routing a workflow_run; if it cannot be established, do not infer synchronize from an open PR's age.

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

Dismiss ↗ | View ↗


3. Forgejo listings omit later pages 🐞 Bug ≡ Correctness
Description
ListRepoPullRequests and the pull-file and commit listings stop when a response contains fewer
than the requested 50 records. On an instance whose configured response maximum clamps that request
below 50, the first non-final page is returned as the entire listing.
Code

internal/forge/forgejo/pulls.go[R253-254]

+		if len(prs) < pullsPageSize {
+			return out, nil
Relevance

●●● Strong

Same short-page termination bug on Forgejo listings was accepted in sibling PR 9869 for issues.go.

PR-#9869

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The issue client explicitly documents server-side page-size clamping and uses an empty page as its
termination condition, while the new pull listings use the requested size.

internal/forge/forgejo/issues.go[20-28]
internal/forge/forgejo/issues.go[106-124]
internal/forge/forgejo/pulls.go[241-257]
internal/forge/forgejo/pulls.go[327-342]

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

## Issue description
Forgejo may return fewer records than requested on a non-final page, so short-page termination drops later records.
## Fix Focus Areas
- internal/forge/forgejo/pulls.go[241-257]
- internal/forge/forgejo/pulls.go[327-342]
- internal/forge/forgejo/pulls.go[364-381]
## Recommended Fix
Follow the issue-listing pattern: continue through short nonempty pages, stop on an empty page, and return a pagination-limit error if the bounded loop is exhausted.

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

Dismiss ↗ | View ↗


View medium (6)
4. Unrelated repository files can be deleted 🐞 Bug ≡ Correctness
Description
forgejoManagedPath accepts any path starting with .forgejo/workflows/fullsend or
.fullsend/forgejo, including names outside the reserved workflow files and helper directory. If a
marked workflow index lists a file such as .forgejo/workflows/fullsend-evil.yml, installation or
removal treats that unrelated file as owned and can delete it.
Code

internal/repos/forgejo_workflows.go[54]

+		if strings.HasPrefix(p, prefix) {
Relevance

●●● Strong

Clear deterministic prefix-check bug in Forgejo workflow ownership; fixes of this kind are generally
accepted.

PR-#9801

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Index entries passing the raw prefix check become owned paths, and removal plans delete every owned
path that exists.

internal/repos/forgejo_workflows.go[42-58]
internal/repos/forgejo_workflows.go[272-299]
internal/repos/forgejo_workflows.go[392-422]

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

## Issue description
Raw prefix matching lets the managed index claim unrelated files with similar names.
## Fix Focus Areas
- internal/repos/forgejo_workflows.go[42-58]
- internal/repos/forgejo_workflows.go[272-299]
- internal/repos/forgejo_workflows.go[392-422]
## Recommended Fix
Match reserved workflow filenames exactly and helper directories with a path-separator boundary; reject other indexed paths before planning updates or removals.

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

Dismiss ↗ | View ↗


5. Failed stack cleanup cannot be retried 🐞 Bug ☼ Reliability
Description
Stack.Teardown sets tornDown before stopping or removing any container. If a cleanup operation
fails or its context is canceled, a later teardown call immediately returns without trying to remove
the remaining containers.
Code

pkg/behaviourtest/drivers/install/forgejostack/stack.go[R593-598]

+	if s.tornDown {
+		s.mu.Unlock()
+		return nil
+	}
+	s.tornDown = true
+	containers := append([]startedContainer(nil), s.containers...)
Relevance

●●● Strong

Flag set before cleanup defeats retry; a clear local reliability bug with no contrary precedent.

PR-#6217

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The early-return guard consults a flag set before cleanup, while removal errors are returned only
after container operations have run.

pkg/behaviourtest/drivers/install/forgejostack/stack.go[591-599]
pkg/behaviourtest/drivers/install/forgejostack/stack.go[601-649]

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

## Issue description
The stack marks teardown complete before cleanup succeeds, preventing retries after removal errors.
## Fix Focus Areas
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[591-649]
## Recommended Fix
Mark teardown complete only after cleanup succeeds, track resources that remain, and allow a later call to retry their removal.

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

Dismiss ↗ | View ↗


6. Emulator fork lookups find no requests 🔗 Cross-repo conflict ≡ Correctness
Description
The fork resolver in reusable-dispatch.yml filters pull requests with head=owner:branch. GitHub
Emulator compares that filter directly with its stored bare branch name, so the resolver receives no
matching requests and skips routing if its completion event is dispatched.
Code

.github/workflows/reusable-dispatch.yml[R272-273]

+          PRS=$(api --method GET "repos/${GITHUB_REPOSITORY}/pulls" \
+            -f state=all -f per_page=100 -f "head=${WR_HEAD_OWNER}:${WR_HEAD_BRANCH}")
Relevance

●● Moderate

Head-filter lookup in PR 9849 drew rejected pagination comments only; no precedent on the
owner:branch filter format.

PR-#9849

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR sends an owner-prefixed head filter and skips when the resulting list is empty; the emulator
applies exact equality between that filter and head_ref.

fullsend -> github-emulator
.github/workflows/reusable-dispatch.yml[270-281]
External repo: fullsend-ai/github-emulator, src/app/api/pulls.py [686-710]

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

## Issue description
Fullsend's new fork resolver uses GitHub's `owner:branch` pull-request filter, but GitHub Emulator compares it to a bare branch name.
## Fix Focus Areas
- .github/workflows/reusable-dispatch.yml[270-281]
- /cross_repos/github-emulator/src/app/api/pulls.py[686-710]
## Recommended Fix
Update the emulator's `head` filter to parse and match `owner:branch` against the head repository and branch, while retaining the existing bare-branch behavior if needed. Test the Fullsend resolver against a fork pull request.

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

Dismiss ↗ | View ↗


7. Failed installs leave repositories half-set 🐞 Bug ☼ Reliability
Description
installRepo writes .fullsend/config.yaml in one request before submitting the workflow-file
changes in another. If the workflow change fails after the config write succeeds, installation
returns an error with the new configuration already committed and the workflows unchanged.
Code

internal/repos/forgejo_lifecycle.go[R643-648]

+		switch cfgState {
+		case ForgejoStateDrift:
+			err = c.UpdateFile(ctx, t.Owner, t.Repo, forgejoManagedConfigPath, "chore: update fullsend managed config", desired, cfgSHA)
+		case ForgejoStateNotInstalled:
+			err = c.CreateFile(ctx, t.Owner, t.Repo, forgejoManagedConfigPath, "chore: install fullsend managed config", desired)
+		}
Relevance

●● Moderate

Rollback-on-partial-failure suggestions were rejected in PR 5898, but that is older and only loosely
matches.

PR-#5898

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Both plans are prepared first, but the config request completes before the separate workflow commit
is attempted; an error in that second request cannot roll back the first.

internal/repos/forgejo_lifecycle.go[619-657]
internal/forge/forgejo/client.go[399-402]

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

## Issue description
Consumer installation makes separate config and workflow writes, permitting partial installation on the second write's failure.
## Fix Focus Areas
- internal/repos/forgejo_lifecycle.go[619-657]
## Recommended Fix
Include the managed-config create or update in the same conditional ChangeFiles request as the workflow plan, preserving the config revision check.

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

Dismiss ↗ | View ↗


8. Large artifact lists appear complete 🐞 Bug ≡ Correctness
Description
ListWorkflowRunArtifacts returns out, nil after its 20-page limit even when the last page was
full. A run with more artifacts than the limit receives a partial list that downstream artifact
lookup treats as authoritative.
Code

internal/forge/forgejo/actions.go[R251-255]

+		if len(arts) < actionsPageSize {
+			break
+		}
+	}
+	return out, nil
Relevance

●● Moderate

Pagination-cap findings split: silent-truncation fixes accepted (9863), while jobs-pagination
suggestions were rejected (5853).

PR-#9863
PR-#5853

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The loop has no exhaustion check, and its caller searches the returned list for an artifact,
reporting absence when it is not present.

internal/forge/forgejo/actions.go[233-255]
pkg/behaviourtest/drivers/ci/forgejoactions/forgejoactions.go[360-395]

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

## Issue description
Artifact pagination returns success after its page cap even when more artifacts may remain.
## Fix Focus Areas
- internal/forge/forgejo/actions.go[233-255]
- pkg/behaviourtest/drivers/ci/forgejoactions/forgejoactions.go[379-395]
## Recommended Fix
Return a pagination-limit error when the loop exhausts its cap without seeing a terminal page; do not expose the collected prefix as a complete listing.

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

Dismiss ↗ | View ↗


9. Emulator fork reviews never start 🔗 Cross-repo conflict ≡ Correctness
Description
The new workflow_run trigger in .github/workflows/fullsend.yaml depends on GitHub Emulator
dispatching an event when the fork stub run completes. The emulator marks completed runs in
check_run_completion without dispatching that event, so its fork-PR review workflow never starts.
Code

.github/workflows/fullsend.yaml[R49-51]

+  workflow_run:
+    workflows: [fullsend-fork-pr]
+    types: [completed]
Relevance

●● Moderate

Same lines were rejected twice in PR 9849, but on ADR-governance grounds; no emulator-dispatch
precedent either way.

PR-#9849

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR adds a completion-event trigger, while the emulator's run-completion path only updates and
flushes the run status; it does not dispatch another workflow event.

fullsend -> github-emulator
.github/workflows/fullsend.yaml[49-51]
External repo: fullsend-ai/github-emulator, src/app/services/workflow_scheduler.py [402-466]

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

## Issue description
The new fork-PR workflow requires a `workflow_run` completion event, which the pinned GitHub Emulator does not dispatch.
## Fix Focus Areas
- .github/workflows/fullsend.yaml[49-51]
- /cross_repos/github-emulator/src/app/services/workflow_scheduler.py[402-466]
## Recommended Fix
Coordinate an emulator change that dispatches `workflow_run` completion events with the metadata consumed by the Fullsend shim, and add an end-to-end fork-PR workflow test before relying on this path in emulator runs.

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

Dismiss ↗ | View ↗



Informational

10. Jira account-list secrets reach artifacts 🐞 Bug ⛨ Security
Description
Check dispatches scans the output for Jira authentication secrets but omits the newly supplied
account-list secrets. When an event actor ID equals a single-account secret, its value remains in
the uploaded dispatch artifact and the secretless matrix output.
Code

.github/workflows/reusable-poll-jira.yml[152]

+          for name in FULLSEND_JIRA_TOKEN FULLSEND_JIRA_EMAIL FULLSEND_JIRA_CLIENT_ID FULLSEND_JIRA_CLIENT_SECRET; do
Relevance

● Weak

Near-identical finding on the same Jira dispatch secret check was explicitly dismissed as rejected
in PR 9262.

PR-#9262

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The poll step receives the list secrets, the check omits them, and the workflow uploads the
resulting JSON before producing a matrix in a job without those secrets. The configured accounts are
compared directly with the actor ID carried by a dispatch event.

.github/workflows/reusable-poll-jira.yml[119-127]
.github/workflows/reusable-poll-jira.yml[139-177]
.github/workflows/reusable-poll-jira.yml[190-203]
internal/jirapoll/auth.go[262-266]
internal/jirapoll/convert.go[31-45]

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

## Issue description
The new account-list secrets can equal actor IDs serialized into dispatches, but the output check covers only authentication secrets.
## Fix Focus Areas
- .github/workflows/reusable-poll-jira.yml[124-127]
- .github/workflows/reusable-poll-jira.yml[139-160]
- .github/workflows/reusable-poll-jira.yml[168-203]
## Recommended Fix
Prevent authorization-list values from reaching artifacts or outputs when confidentiality is required; validate every sensitive list value before upload and arrange dispatch transport so legitimate actor IDs do not need to expose a configured secret.

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

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #9758
  🌐 PR #9853
✅ Compliance rules (platform): 103 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Web pages:
  +2 more
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/agents (sha: 6a45ea4b) — View relationship
  Explored: repo: fullsend-ai/react-shopping-cart (sha: ae9ac17b) — View relationship
  Explored: repo: fullsend-ai/github-emulator (sha: 50711628) — View relationship
✅ Context preparation
  Commit messages: summarized; full text retained for this review
  Past issues: summarized; full text retained for this review
Review mode: Auto: ⚖️ Balanced: Merge resolves Jira poller conflicts, but changes are shallow and localized.

Grey Divider

Tip of the day
💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

elif [[ -n "${READY_AT}" ]] && within "${READY_AT}"; then
ACTION="ready_for_review"
else
ACTION="synchronize"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

1. Fork labels can start unexpected reviews 🐞 Bug ≡ Correctness

Resolve fork pull request for workflow_run maps every older open pull request to synchronize
without establishing which pull-request action started the fork-controlled stub. A fork author who
is authorized for review can add a label trigger to their stub and cause a label event to enter the
review and deduplication path.
Agent Prompt
## Issue description
Fork-controlled stub runs can represent pull-request actions other than synchronize, but the resolver classifies any older open PR as synchronize.
## Fix Focus Areas
- .github/workflows/reusable-dispatch.yml[229-253]
- .github/workflows/reusable-dispatch.yml[329-338]
## Recommended Fix
Establish trustworthy provenance for the triggering action before routing a workflow_run; if it cannot be established, do not infer synchronize from an open PR's age.

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

Dismiss ↗ | View ↗

return false
}
for _, prefix := range forgejoManagedPrefixes {
if strings.HasPrefix(p, prefix) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

2. Unrelated repository files can be deleted 🐞 Bug ≡ Correctness

forgejoManagedPath accepts any path starting with .forgejo/workflows/fullsend or
.fullsend/forgejo, including names outside the reserved workflow files and helper directory. If a
marked workflow index lists a file such as .forgejo/workflows/fullsend-evil.yml, installation or
removal treats that unrelated file as owned and can delete it.
Agent Prompt
## Issue description
Raw prefix matching lets the managed index claim unrelated files with similar names.
## Fix Focus Areas
- internal/repos/forgejo_workflows.go[42-58]
- internal/repos/forgejo_workflows.go[272-299]
- internal/repos/forgejo_workflows.go[392-422]
## Recommended Fix
Match reserved workflow filenames exactly and helper directories with a path-separator boundary; reject other indexed paths before planning updates or removals.

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

Dismiss ↗ | View ↗

Comment on lines +253 to +254
if len(prs) < pullsPageSize {
return out, nil

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

3. Forgejo listings omit later pages 🐞 Bug ≡ Correctness

ListRepoPullRequests and the pull-file and commit listings stop when a response contains fewer
than the requested 50 records. On an instance whose configured response maximum clamps that request
below 50, the first non-final page is returned as the entire listing.
Agent Prompt
## Issue description
Forgejo may return fewer records than requested on a non-final page, so short-page termination drops later records.
## Fix Focus Areas
- internal/forge/forgejo/pulls.go[241-257]
- internal/forge/forgejo/pulls.go[327-342]
- internal/forge/forgejo/pulls.go[364-381]
## Recommended Fix
Follow the issue-listing pattern: continue through short nonempty pages, stop on an empty page, and return a pagination-limit error if the bounded loop is exhausted.

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

Dismiss ↗ | View ↗

Comment on lines +251 to +255
if len(arts) < actionsPageSize {
break
}
}
return out, nil

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

6. Large artifact lists appear complete 🐞 Bug ≡ Correctness

ListWorkflowRunArtifacts returns out, nil after its 20-page limit even when the last page was
full. A run with more artifacts than the limit receives a partial list that downstream artifact
lookup treats as authoritative.
Agent Prompt
## Issue description
Artifact pagination returns success after its page cap even when more artifacts may remain.
## Fix Focus Areas
- internal/forge/forgejo/actions.go[233-255]
- pkg/behaviourtest/drivers/ci/forgejoactions/forgejoactions.go[379-395]
## Recommended Fix
Return a pagination-limit error when the loop exhausts its cap without seeing a terminal page; do not expose the collected prefix as a complete listing.

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

Dismiss ↗ | View ↗

Comment on lines +643 to +648
switch cfgState {
case ForgejoStateDrift:
err = c.UpdateFile(ctx, t.Owner, t.Repo, forgejoManagedConfigPath, "chore: update fullsend managed config", desired, cfgSHA)
case ForgejoStateNotInstalled:
err = c.CreateFile(ctx, t.Owner, t.Repo, forgejoManagedConfigPath, "chore: install fullsend managed config", desired)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

7. Failed installs leave repositories half-set 🐞 Bug ☼ Reliability

installRepo writes .fullsend/config.yaml in one request before submitting the workflow-file
changes in another. If the workflow change fails after the config write succeeds, installation
returns an error with the new configuration already committed and the workflows unchanged.
Agent Prompt
## Issue description
Consumer installation makes separate config and workflow writes, permitting partial installation on the second write's failure.
## Fix Focus Areas
- internal/repos/forgejo_lifecycle.go[619-657]
## Recommended Fix
Include the managed-config create or update in the same conditional ChangeFiles request as the workflow plan, preserving the config revision check.

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

Dismiss ↗ | View ↗

Comment on lines +593 to +598
if s.tornDown {
s.mu.Unlock()
return nil
}
s.tornDown = true
containers := append([]startedContainer(nil), s.containers...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

4. Failed stack cleanup cannot be retried 🐞 Bug ☼ Reliability

Stack.Teardown sets tornDown before stopping or removing any container. If a cleanup operation
fails or its context is canceled, a later teardown call immediately returns without trying to remove
the remaining containers.
Agent Prompt
## Issue description
The stack marks teardown complete before cleanup succeeds, preventing retries after removal errors.
## Fix Focus Areas
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[591-649]
## Recommended Fix
Mark teardown complete only after cleanup succeeds, track resources that remain, and allow a later call to retry their removal.

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

Dismiss ↗ | View ↗

Comment on lines +612 to +615
removed[c.id] = true
if err := s.cfg.Engine.RemoveContainer(ctx, c.id); err != nil {
errs = append(errs, err)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

5. A failed runner removal is skipped 🐞 Bug ☼ Reliability

Stack.Teardown records the runner ID in removed before checking whether the force-removal
request succeeded. If stopping and force-removing the runner both fail, the later removal pass skips
that still-present runner while continuing with the job-container snapshot.
Agent Prompt
## Issue description
A failed force-removal is recorded as successful, so the ordered cleanup pass skips the runner.
## Fix Focus Areas
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[605-616]
- pkg/behaviourtest/drivers/install/forgejostack/stack.go[634-643]
## Recommended Fix
Add the runner ID to the removed set only after RemoveContainer succeeds; let the ordered pass attempt removal if the earlier request failed.

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

Dismiss ↗ | View ↗

Comment on lines +49 to +51
workflow_run:
workflows: [fullsend-fork-pr]
types: [completed]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

8. Emulator fork reviews never start 🔗 Cross-repo conflict ≡ Correctness

The new workflow_run trigger in .github/workflows/fullsend.yaml depends on GitHub Emulator
dispatching an event when the fork stub run completes. The emulator marks completed runs in
check_run_completion without dispatching that event, so its fork-PR review workflow never starts.
Agent Prompt
## Issue description
The new fork-PR workflow requires a `workflow_run` completion event, which the pinned GitHub Emulator does not dispatch.
## Fix Focus Areas
- .github/workflows/fullsend.yaml[49-51]
- /cross_repos/github-emulator/src/app/services/workflow_scheduler.py[402-466]
## Recommended Fix
Coordinate an emulator change that dispatches `workflow_run` completion events with the metadata consumed by the Fullsend shim, and add an end-to-end fork-PR workflow test before relying on this path in emulator runs.

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

Dismiss ↗ | View ↗

Comment on lines +272 to +273
PRS=$(api --method GET "repos/${GITHUB_REPOSITORY}/pulls" \
-f state=all -f per_page=100 -f "head=${WR_HEAD_OWNER}:${WR_HEAD_BRANCH}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

9. Emulator fork lookups find no requests 🔗 Cross-repo conflict ≡ Correctness

The fork resolver in reusable-dispatch.yml filters pull requests with head=owner:branch. GitHub
Emulator compares that filter directly with its stored bare branch name, so the resolver receives no
matching requests and skips routing if its completion event is dispatched.
Agent Prompt
## Issue description
Fullsend's new fork resolver uses GitHub's `owner:branch` pull-request filter, but GitHub Emulator compares it to a bare branch name.
## Fix Focus Areas
- .github/workflows/reusable-dispatch.yml[270-281]
- /cross_repos/github-emulator/src/app/api/pulls.py[686-710]
## Recommended Fix
Update the emulator's `head` filter to parse and match `owner:branch` against the head repository and branch, while retaining the existing bare-branch behavior if needed. Test the Fullsend resolver against a fork pull request.

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

Dismiss ↗ | View ↗

renovate-fullsend Bot and others added 6 commits November 27, 2026 03:20
Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
)

Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
…b-closed-by

refactor(fullsend-ai#9583): read the GitHub closing actor from the latest close event
…on change

Applying a config-only change to an already-installed repo (e.g.
`fullsend repos install --direct` after editing repos.yaml) produced
the commit subject "chore: bump fullsend to vX.Y.Z" even though the
fullsend version pin did not change.

Root cause: BuildScaffoldPRMetadata took the upgrade path for every
installed repo, and upgradeMetadata emitted a "bump" message whenever
the new tag was known, without checking whether the installed version
differed. detectExistingVersion also only read the GitHub shim
workflow, so on GitLab the installed version was always empty and the
short "bump fullsend to <tag>" form was chosen.

- upgradeMetadata now uses "bump fullsend from A to B" only when both
  versions are known and differ; otherwise it falls back to the
  existing generic "update fullsend per-repo installation" message and
  the default scaffold branch.
- detectExistingVersion now also reads the GitLab pipeline wrapper
  (.gitlab/ci/fullsend-pipeline.yml) and parses its
  "# fullsend-ref: <sha> (vX.Y.Z)" / "# fullsend-ref: vX.Y.Z" marker,
  so genuine GitLab upgrades still get a "bump from A to B" message.

Tests updated: the two cases that expected "bump fullsend to X" with no
detectable installed version now expect the generic message; added
same-version, GitLab marker, and GitLab upgrade cases.

Note: `pre-commit run` could not fetch hook repositories in the
sandbox (TLS error). The applicable hooks were run directly instead
(pre-commit-hooks 6.0.0 fixers/checks, gitleaks, gofmt, go vet) and
passed.

Closes fullsend-ai#9901

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bump check compared the installed version with the CLI release tag,
but a repo pinned to a different fullsend_ref is rendered at the pin, so
a config-only change was still labelled as a bump to the CLI release.

BuildScaffoldPRMetadata now accepts the files about to be committed
(ScaffoldMetadataOpts.DeliveredFiles) and reads the new version from
their version markers. A config-only change delivers no versioned file,
so it gets the generic update message. The repos install commit path
passes its files.

Note: pre-commit could not fetch remote hook repositories (certificate
failure); gofmt and go vet were run directly and passed.

Addresses fullsend-ai#9910

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…commit-subject

fix(fullsend-ai#9901): only label scaffold commits as a bump on version change
renovate-fullsend Bot and others added 7 commits November 28, 2026 15:16
…lsend-ai#9916)

Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
…end-ai#9921)

Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
…9926)

Co-authored-by: renovate-fullsend[bot] <295781306+renovate-fullsend[bot]@users.noreply.github.com>
…y-source-config

feat(fullsend-ai#9884): resolve entity-source config into a canonical model
The GitHub entity adapter reported title, body, and comment and review
text and commands as unknown "unsupported", so a CEL predicate reading
them could never settle. The normalized-entity v1 contract allows
concrete text only as the complete output of a versioned content-safety
pipeline, and the repository had no such pipeline.

Pipeline: host it in internal/security, which already owns the Unicode
normalizer, secret redactor, and injection scanner it composes.
FilterEntityText (version fullsend-entity-text/v1) applies the snapshot
v1 order to the complete source: acquisition cap, UTF-8 check, LF line
endings, Unicode safety, redaction, injection rejection, then a byte
bound (1 KiB title, 64 KiB action text). It never truncates.

normentity.CommandToken derives the first-line command token from the
filtered text using the contract's whitespace set and 2-64 code point
rule.

entityacquire gains NeedText, planned only when a predicate selects a
text or command member (or uses a dynamic key that could name one).

The adapter selects title, body, editor provenance, and comment and
review body behind @include directives: title with NeedTitle, the body
action with NeedBody, and action text only with NeedText. Rejected text
is unknown "failed", oversized text is unknown "partial", and
unrequested text is unknown "not_loaded"; none reads as empty. An empty
action text is known "", and a title that filters to empty is unknown.
Actor admission, including the title editor, stays in entityview.

Note: pre-commit could not fetch its hook repositories (TLS failure in
the sandbox), so the hooks were run directly: pre-commit-hooks 6.0.0
file checks, gofmt, go vet, broken-symlink lint, and the gitleaks-based
scan-secrets all passed. The semgrep hook skipped itself because its
ruleset download was blocked; CI semgrep still runs.

Closes fullsend-ai#9908

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y-text-facts

refactor(fullsend-ai#9908): expose filtered GitHub entity text facts
…dle-merge-main

Signed-off-by: guy oron <goron@redhat.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (post-script /home/runner/work/fullsend/fullsend/.fullsend/.fullsend-cache/resources/sha256/03c579aa9e6a85ee2bd448f3e6f399b2e3c67b6e5f68e0e8fca726ddf61b4538/scripts/post-review.sh failed: exit status 1) · Started 11:33 AM UTC · Completed 11:36 AM UTC

Commit: 9689565 · View workflow run →

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

@dhshah13
dhshah13 merged commit 9689565 into fullsend-ai:feat/jirapoll-skip-idle Nov 30, 2026
39 of 40 checks passed

This branch was successfully deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.