Skip to content

feat(code): add optional Jira workflow transitions - #2005

Merged
waynesun09 merged 7 commits into
fullsend-ai:mainfrom
ederign:feat/618-jira-pr-ready-transition
Nov 17, 2026
Merged

waynesun09 merged 7 commits into
fullsend-ai:mainfrom
ederign:feat/618-jira-pr-ready-transition

Conversation

@ederign

@ederign ederign commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds optional named Jira transitions after accepted code preflight and after the code agent produces an open, non-draft PR/MR. Both settings default to off; Jira controls allowed source states.

Requires Fullsend v0.56.1 or later. fullsend-ai/fullsend#9437 is merged and included in that release. The release tag contains merge commit 2cf5b8f9953c3cbea391d043ee412b342dc30fdf; both hooks use the released command flags. The earlier release hold is satisfied.

This is the code-agent integration for the shared transition work in fullsend#6704, building on fullsend#8920 and agents#1843. Protected harness/script changes remain subject to maintainer approval.

Configuration and behavior

Configure runner settings through a derived code harness (base: composition), following ADR 0080. The historical smoke test used:

env:
  runner:
    CODE_JIRA_STARTED_TRANSITION: "In Progress"
    CODE_JIRA_PR_READY_TRANSITION: "Refinement"

The test workflow had no Review state, so we used its Refinement transition instead. This is a test-specific choice, not a product default. Teams configure named transitions available in their workflows.

  • Started runs after accepted Jira preflight, before sandbox creation. Skips/failures do not transition; a later sandbox failure does not roll it back.
  • PR-ready runs after the Jira stage comment succeeds and the forge confirms an open, non-draft PR/MR. GitHub and GitLab targets are supported.
  • Optional transition failures warn without failing coding/publication or retrying the transition. Failure diagnostics redact the Jira token/email in-process before logging; they do not export the Jira token to a PATH-resolved redaction utility. Unconfirmed readiness produces an explicit skip message.
  • Jira credentials remain on the runner; this does not claim isolation from arbitrary same-user process inspection.

Later draft-to-ready events and merged-PR transitions remain out of scope.

Validation

Validation scope: The pre-code credential re-exec runs on every Jira-sourced code run with Jira credentials present, even when both transition settings are off. Only the status-transition writes are opt-in.

Live verification of the current bundled preflight, with real Jira credentials and shell tracing enabled:

  • Both settings off: issue remained Closed; exit 0.
  • Started In Progress, PR-ready off: issue moved Closed → In Progress; exit 0.
  • Neither trace contained the token or email. The final issue state was left unchanged for a screenshot.

These were direct preflight invocations, not complete sandbox/post-script runs. CODE_FORCE=true bypassed existing-PR and child-issue checks so both invocations reached accepted preflight. The historical end-to-end test below remains separate.

Current broader-suite limitation: fixture commits initially inherited local GPG signing; rerunning with signing disabled for test fixtures passed that point, then stopped at the unrelated post-fix real-gitleaks fixture graph-policy-real-gitleaks-complete-scan (rejected, but not by the expected secret scan). This is not a full-suite pass. Affected Jira preflight/post-code suites, bundle parity, all-files pre-commit and lint passed.

Fixed the additional preflight tracing paths around Jira library initialization, skip-comment writes and child queries. Token-mode regression tests cover accepted preflight and skip-comment success/failure.

Release follow-up: merged current upstream changes, preserved OAuth client-credential support and portable credential handoff, and documented the minimum CLI release. Added OAuth success/failure cases on GitHub/GitLab, padded-secret diagnostic redaction, and preflight tool-isolation coverage. Complete affected preflight and post-code suites, bundle parity, all-files pre-commit and repository lint pass for this update. The subsequent live preflight verification is recorded above.

Prior validation (before this release follow-up): generated bundles matched source. Bundled Jira preflight and complete bundled post-code tests pass on macOS with modern Bash, including GitHub/GitLab failed-transition cases with a shadowed awk and literal-pattern credentials. All-files pre-commit and make lint pass. All source test recipes passed across the original run and resumed runs. Two unchanged host-specific fixtures needed local tool setup: an isolated pinned gitleaks directory to preserve test mocks, and GNU sed for the existing scribe regexes. This was not one uninterrupted green make script-test run.

An isolated regression probe demonstrates that the old failure path exports a synthetic credential to shadowed awk despite clean logs; the fixed path emits redacted diagnostics without that exposure.

Historical live testing exercised a real local code run and open non-draft GitHub PR, with Jira moving New → In Progress → Refinement. That evidence predates this error-path fix; it is not a new live rerun. GitLab coverage is automated, not a live MR run. Internal identifiers and screenshots are omitted from this public description; detailed evidence remains local.

Upstream functional tests require a writer's /ok-to-test <latest-head-SHA> approval. A blocked authorization gate is not a functional test result.

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
@ederign
ederign requested a review from a team as a code owner November 13, 2026 18:41
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Add opt-in Jira transitions for code preflight and PR readiness

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

Grey Divider

AI Description

• Add independent, disabled-by-default Jira transitions after accepted code preflight and confirmed
 PR/MR readiness.
• Keep Jira credentials on the runner and make optional transition failures nonfatal.
• Document configuration and test both workflows across GitHub, GitLab, Linux, and macOS.
Diagram

graph TD
  Config["Runner settings"] --> Preflight["Jira preflight"] --> Started{"Started enabled?"} --> StartWrite["Jira started"] --> Sandbox["Code sandbox"] --> Post["Post-code comment"] --> Ready{"Open non-draft?"} --> ReadyWrite["Jira PR-ready"]
  Started -->|off| Sandbox
Loading
High-Level Assessment

The runner-side, opt-in approach fits the existing pre/post-script boundaries and keeps Jira credentials out of the sandbox. A later forge-event listener could detect draft-to-ready changes, but would expand the feature beyond readiness observed during this code run; central configuration would also depart from the documented harness-override model.

Files changed (8) +605 / -34

Enhancement (4) +222 / -12
post-code.shAdd PR-ready transition to bundled post-code script +51/-6

Add PR-ready transition to bundled post-code script

• After a successful Jira stage comment, checks the current PR/MR state and optionally invokes the named transition. Makes credential descriptor restoration portable beyond /proc and keeps transition failures nonfatal.

scripts/post-code.sh

post-code.src.shAdd optional PR-ready transition to post-code source +51/-6

Add optional PR-ready transition to post-code source

• Gates the transition on an explicitly open, non-draft GitHub PR or GitLab MR after the Jira comment succeeds. Uses runner-held credentials, avoids retries, and warns on failed optional writes.

scripts/post-code.src.sh

pre-code-jira.shAdd started transition to bundled Jira preflight +60/-0

Add started transition to bundled Jira preflight

• Withholds inherited Jira credentials before dependency setup and resolves the trusted CLI before PATH changes. After accepted preflight, optionally runs the named transition without failing coding if the write fails.

scripts/pre-code-jira.sh

pre-code-jira.src.shAdd optional started transition to Jira preflight source +60/-0

Add optional started transition to Jira preflight source

• Re-executes with Jira credentials removed from the inherited environment, then checks runner identity and prerequisites before an optional post-preflight transition. Skipped or failed preflight never reaches the write.

scripts/pre-code-jira.src.sh

Tests (2) +315 / -20
post-code-test.shTest PR-ready transitions across GitHub and GitLab +140/-17

Test PR-ready transitions across GitHub and GitLab

• Extends forge and CLI fixtures to exercise ready, draft, closed, malformed, existing-PR, disabled, and failure cases. Adds credential-isolation checks with platform-aware Linux /proc expectations.

scripts/post-code-test.sh

pre-code-jira-test.shCover started-transition timing and credential isolation +175/-3

Cover started-transition timing and credential isolation

• Tests opt-in behavior, preflight skips, identity conflicts, missing prerequisites, service-account auth, and nonfatal transition failures. Verifies dependency tools cannot inherit Jira credentials or shadow the trusted CLI.

scripts/pre-code-jira-test.sh

Documentation (1) +63 / -0
code.mdDocument optional Jira transitions and their limits +63/-0

Document optional Jira transitions and their limits

• Explains runner-only configuration, when each named transition runs, prerequisites, credential handling, and nonfatal failure behavior. Clarifies that later readiness events and merge transitions are out of scope.

docs/code.md

Other (1) +5 / -2
code.yamlDefault both Jira transitions to off on the runner +5/-2

Default both Jira transitions to off on the runner

• Adds independent runner settings without exposing them to the sandbox. Updates the Jira credential comment to cover the pre-code transition.

harness/code.yaml

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:43 PM UTC · Completed 6:53 PM UTC

Commit: 6f89879 · View workflow run →

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

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Failed started transitions give no reason why ✓ Resolved

Resolving commit: b7cfba2

Resolution reason
Failure output of the started transition is now captured, token and email are redacted in-process,
each line is sanitized and printed to the log before the existing warning, so operators can see the
actual cause (e.g., unknown subcommand, bad transition name, auth error).
Description
_jira_transition_started sends the CLI's stdout and stderr to /dev/null and logs only a generic
warning, while the post-code path redacts the token and prints the CLI output. The `issues
transition` subcommand only exists in newer fullsend releases, so a too-old runner CLI, a misspelled
transition name, a transition not allowed from the current status, and an auth error all produce the
same warning, and operators have nothing to tell them apart.


Informational

2. Non-ready PRs skip the transition with no log line ✓ Resolved

Resolving commit: b7cfba2

Resolution reason
Added an echo line before the early return in maybe_transition_jira_pr_ready in both
scripts/post-code.sh and scripts/post-code.src.sh: "PR/MR is not confirmed open and non-draft;
skipping the optional Jira PR-ready transition". This logs the skip reason, as the suggested fix
requested. The fix does not include the observed state/draft values, but the log line itself
addresses the finding. Also added a test asserting the message appears for unconfirmed readiness.
Description
When the forge reports a draft, closed, merged or malformed PR/MR, maybe_transition_jira_pr_ready
returns 0 without printing anything. That happens whenever the jq readiness filter does not match,
including an MR that is already merged because auto-merge was enabled just before this check. An
operator who configured CODE_JIRA_PR_READY_TRANSITION then sees no transition and no log
explaining why.

Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #1843
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 55 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Web pages:
  +2 more
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/fullsend (sha: c74c65fd) — View relationship
Review mode: Auto: 🧠 Deep: Security-sensitive shell changes span multiple independent pre/post paths.

Grey Divider

Tip of the day
💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread scripts/pre-code-jira.src.sh Resolved
Comment thread scripts/post-code.src.sh Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/elevated PR risk: elevated label Nov 13, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

Previous run

Risk Assessment: elevated (3/5)

Details

Elevated risk driven by modifications across seven protected harness and script paths, large blast radius, and high recent churn and multi-author contention in target scripts.

Previous run (2)

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

Previous run (3)

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

Previous run (4)

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

Previous run (5)

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

Previous run (6)

Risk Assessment: elevated (3/5)

Details

Elevated risk due to extensive modifications across seven protected harness and script paths with high recent churn and multi-author contention in target scripts.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] harness/code.yaml — This PR modifies protected paths: harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh. The description explains the rationale and cross-references upstream work (fullsend#6704, fullsend#8920, agents#1843), but human approval is always required for protected-path changes regardless of context.
    Remediation: A maintainer with authority over harness/ and scripts/ must review and approve.

Low

  • [missing-authorization] PR-level — The change is non-trivial but has no linked same-repository issue in fullsend-ai/agents authorizing it; the body only cross-references upstream fullsend issues and a prior PR.
    Remediation: Link an approved same-repository issue that authorizes the Jira workflow transition feature.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic2VjcmV0LWV4cG9zdXJlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL2NvZGUubWQiLCJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsImxpbmUiOjUzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfNDNlMmZiYzg0ZmMyMWQ0OSIsImxpbmUiOjExNiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzZWNyZXQtZXhwb3N1cmUiLCJmaWxlIjoic2NyaXB0cy9wcmUtY29kZS1qaXJhLnNyYy5zaCIsImlkIjoiZl81MjgzMTEzZGMzNDVlYjNkIiwibGluZSI6MTY3LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzUyODMxMTNkYzM0NWViM2QiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wNzRhYWI0NTk2ZTQ2NDQ0Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzdjYTcyMmQwZmIxMjIyN2MiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kMjZjODk3MTlmNDcwMjc4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzQzZTJmYmM4NGZjMjFkNDkiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [protected-path] scripts/post-code.src.sh — This PR modifies protected governance/infrastructure paths: harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh. The description explains the rationale and links upstream issues, but human approval is always required for protected-path changes regardless of context.

Low

  • [missing-authorization] PR-level — The PR adds non-trivial functionality (about 1,400 diff lines of Jira workflow transitions) with no authorizing issue in this repository. The body cites issues: add tracker-neutral issue transitions fullsend#6704, #8920 and #9437 and agents#1843 as context, but none is a same-repo issue. Remediation: link an authorizing issue in fullsend-ai/agents, or get explicit maintainer sign-off.

Earlier findings

  • scripts/pre-code-jira.src.sh:167, secret-exposure — resolved by change. The latest commit suspends tracing before the Jira library loads, around skip-comment posting, and around the child-issue query, and restores the caller's trace state afterward. New xtrace tests assert that neither the token nor the email appears in traced output.
  • scripts/post-code.src.sh:624, secret-exposure — resolved by change.
  • scripts/post-code.src.sh:116, secret-exposure — resolved by change.
  • docs/code.md:53, doc-style — resolved by change.
  • scripts/post-code.src.sh:41, pattern-inconsistency — resolved by change.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzZWNyZXQtZXhwb3N1cmUiLCJmaWxlIjoic2NyaXB0cy9wcmUtY29kZS1qaXJhLnNyYy5zaCIsImlkIjoiZl81MjgzMTEzZGMzNDVlYjNkIiwibGluZSI6MTY3LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic2VjcmV0LWV4cG9zdXJlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL2NvZGUubWQiLCJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsImxpbmUiOjUzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfNDNlMmZiYzg0ZmMyMWQ0OSIsImxpbmUiOjExNiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzQzZTJmYmM4NGZjMjFkNDkiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wNzRhYWI0NTk2ZTQ2NDQ0Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzdjYTcyMmQwZmIxMjIyN2MiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kMjZjODk3MTlmNDcwMjc4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [protected-path] harness/code.yaml — This PR modifies protected governance/infrastructure paths: harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh. The description explains the rationale and links the tracking issues in fullsend-ai/fullsend, but human approval is always required for protected-path changes, regardless of context.

Low

  • [secret-exposure] scripts/pre-code-jira.src.sh:167 — A token-mode Jira credential can still reach xtrace during preflight. Tracing is restored before jira-triage-ops.lib.sh is sourced, and that library calls jira_auth_select "${JIRA_TOKEN:-}" ... at source time (bundled scripts/pre-code-jira.sh:2150). With tracing on, bash prints the call with the token expanded before jira_auth_select runs set +x. The same unguarded call exists in the base branch, so this PR did not introduce it, but the new comment at lines 63-65 says every credential expansion after the re-exec is guarded, and this one is not. The new traced regression test covers client credentials only.
    Remediation: Suspend xtrace while sourcing jira-triage-ops.lib.sh and restore it afterwards, or reword the comment so it does not overstate the protection. Optionally add a token-mode traced pre-code regression test and regenerate the bundle.
  • [missing-authorization] PR-level — The PR makes non-trivial functional changes across harness configuration, lifecycle scripts, tests and documentation, and no authorizing issue in this repository is linked. The description links fullsend-ai/fullsend issues #6704 and #8920 and PR agents#1843. Unchanged from the prior review.

Earlier findings

  • scripts/post-code.src.sh:116, secret-exposure — resolved. Commit 18c0b1d makes post_jira_stage_update suspend xtrace around the whole credential-handling call and restore it on every exit path, and moves the ::add-mask:: block directly after the credential re-exec with xtrace suspended, in both post-code.src.sh and the bundled post-code.sh.
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfNDNlMmZiYzg0ZmMyMWQ0OSIsImxpbmUiOjExNiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic2VjcmV0LWV4cG9zdXJlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL2NvZGUubWQiLCJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsImxpbmUiOjUzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2VjYzg0OWM4NzExMzFmOTAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [secret-exposure] scripts/post-code.src.sh:116 — This PR makes the credential-stripping re-exec keep bash -x (_jira_bash_flags+=(-x); the same preservation is added in scripts/pre-code-jira.src.sh). The base script dropped xtrace across the re-exec, so the child ran untraced. With this change the re-exec'd child is traced, and the existing token-mode stage-comment path in post_jira_stage_update expands _jira_token_saved and _jira_email_saved as arguments to jira_auth_select and jira_auth_fullsend before those helpers can disable tracing. In token mode jira_auth_fullsend has no xtrace guard (only client mode does). The new transition call turns tracing off first, but the stage-comment call before it does not. The only xtrace test (jira-client-credentials-xtrace) runs in OAuth/client-credentials mode, so it misses the token-mode leak.
    Remediation: Disable tracing in the caller before credentials are expanded for jira_auth_select and the stage-comment jira_auth_fullsend call, restoring the previous state afterward (or stop passing -x to the re-exec). Add token-mode xtrace tests asserting neither the Jira token nor the email appears in output, then run make script-build to regenerate scripts/post-code.sh and the pre-code-jira bundle.

  • [protected-path] harness/code.yaml — This PR modifies protected paths: harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh. The description explains the rationale and references cross-repository work, but human approval is always required for protected-path changes, regardless of context.

Low

  • [missing-authorization] N/A (PR-level) — This is a non-trivial feature (8 files, ~830 changed lines) with no linked tracking issue in fullsend-ai/agents. agents#1843 is a closed PR, the #618 in the branch name is an unrelated open issue, and the remaining references (fullsend#6704, #8920, #9437) are in another repository. A maintainer should explicitly confirm scope; the PR already carries requires-manual-review.
    Remediation: Link an in-repo tracking issue that defines the Jira-transition scope, or have a maintainer explicitly approve the scope during review.

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)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic2VjcmV0LWV4cG9zdXJlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL2NvZGUubWQiLCJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsImxpbmUiOjUzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsInN0YXR1cyI6InJlY2xhc3NpZmllZCJ9LHsiaWQiOiJmXzdjYTcyMmQwZmIxMjIyN2MiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kMjZjODk3MTlmNDcwMjc4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [protected-path] harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh — This PR modifies governance/infrastructure files under protected paths (harness/, scripts/). The description explains the rationale and cites the related work, but human approval is always required for protected-path changes, regardless of context.

Low

  • [missing-authorization] PR-level — The change adds optional Jira workflow transitions across the harness, the pre/post-code scripts, tests and docs (about 800 changed lines) and links no issue in this repository. The description names issues: add tracker-neutral issue transitions fullsend#6704 as the parent work item, with #8920, #9437 and agents#1843 as related work. None of these could be checked from the review sandbox. This is an authorization-trail concern, not a code defect; the PR already carries the requires-manual-review label.
    Remediation: A maintainer should confirm that issues: add tracker-neutral issue transitions fullsend#6704 authorizes this code-agent integration, or link an issue in fullsend-ai/agents.

Earlier findings

  • PR-level, missing-authorization — reclassified from medium to low. The parent work item is named in the description and the repository rules do not require a same-repo issue, so medium overstated the concern.

Labels: The PR adds a new optional feature (Jira workflow transitions) to the code agent.

Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic2VjcmV0LWV4cG9zdXJlIiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl83Y2E3MjJkMGZiMTIyMjdjIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL2NvZGUubWQiLCJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsImxpbmUiOjUzLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfZWNjODQ5Yzg3MTEzMWY5MCIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfN2NhNzIyZDBmYjEyMjI3YyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzA3NGFhYjQ1OTZlNDY0NDQiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfZDI2Yzg5NzE5ZjQ3MDI3OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2VjYzg0OWM4NzExMzFmOTAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [protected-path] harness/code.yaml — This PR modifies protected governance/infrastructure paths: harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh. The description explains the rationale and cites the related work, but human approval is always required for protected-path changes regardless of context.
  • [missing-authorization] PR-level — The change adds optional Jira workflow transitions across the harness and the pre/post-code scripts. It is a non-trivial feature, and no issue in this repository is linked to authorize that scope. The description cites only external issues (fullsend#6704, fullsend#8920) and agents#1843, none of which were verified.
    Remediation: Link an approved issue in fullsend-ai/agents that authorizes the scope, or get explicit maintainer authorization.

Earlier findings

  • scripts/post-code.src.sh:624, secret-exposure — resolved. The PR-ready failure path now redacts the Jira token and email with in-process Bash substitution before any external sanitizer. The token is no longer passed to the PATH-resolved _redact_literal_token helper.
  • docs/code.md:53, doc-style — resolved. The typographic apostrophes were replaced with ASCII apostrophes.
  • scripts/post-code.src.sh:41, pattern-inconsistency — resolved. CODE_JIRA_PR_READY_TRANSITION was added to the header comment's optional-variable list.
Previous run (6)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfN2NhNzIyZDBmYjEyMjI3YyIsImxpbmUiOjYyNCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjpudWxsLCJpZCI6ImZfMDc0YWFiNDU5NmU0NjQ0NCIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZG9jLXN0eWxlIiwiZmlsZSI6ImRvY3MvY29kZS5tZCIsImlkIjoiZl9kMjZjODk3MTlmNDcwMjc4IiwibGluZSI6NTMsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoicGF0dGVybi1pbmNvbnNpc3RlbmN5IiwiZmlsZSI6InNjcmlwdHMvcG9zdC1jb2RlLnNyYy5zaCIsImlkIjoiZl9lY2M4NDljODcxMTMxZjkwIiwibGluZSI6NDEsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn1dfQ== -->

Review

Findings

Medium

  • [secret-exposure] scripts/post-code.src.sh:624 — When the optional PR-ready transition fails, maybe_transition_jira_pr_ready passes _jira_token_saved to _redact_literal_token, which exports it as REDACT_LITERAL_TOKEN and runs awk by name, so PATH decides which binary runs. This happens after line 909 prepends ${HOME}/.local/bin to PATH and after repo-controlled pre-commit hooks/tool installs have run. A malicious hook can plant an awk there and capture the Jira write token whenever the (opt-in, default off) transition fails. This bypasses the script's own Jira credential isolation design (the fullsend CLI path is pinned at line 783 for this reason); before this change nothing passed the Jira token to _redact_literal_token.
    Remediation: Redact in-process in Bash without exporting the token or calling an external program (e.g. output="${output//"${_jira_token_saved}"/[REDACTED]}"), or resolve a trusted absolute awk path before repo-controlled code runs. Re-run make script-build and add a regression test that shadows awk and forces a transition failure.

  • [protected-path] harness/code.yaml, scripts/post-code.sh, scripts/post-code.src.sh, scripts/post-code-test.sh, scripts/pre-code-jira.sh, scripts/pre-code-jira.src.sh, scripts/pre-code-jira-test.sh — This PR modifies governance/infrastructure files under protected paths (harness/, scripts/). The description explains the rationale, but human approval is always required for protected-path changes, regardless of context.

  • [missing-authorization] N/A — This non-trivial change adds optional Jira workflow transitions across the harness config, pre/post scripts, tests and docs, but links no issue in fullsend-ai/agents defining its scope. The PR body cites external sources instead (Jira AISDLC-618, Write triage and code results to the Jira work item fullsend#8920 and #6704, dependency PR feat(issues): add tracker-neutral issue transitions fullsend#9437). Both features are off by default and the scope matches those references; this is an authorization-trail concern.
    Remediation: Link a tracking issue in fullsend-ai/agents that defines the scope, or confirm the upstream fullsend issue is the accepted authorization for this lockstep repo.

Low

  • [doc-style] docs/code.md:53 — Curly apostrophes (U+2019) are used at lines 53, 54, 404 and 429 (harness’s, team’s, PR/MR’s); the rest of the repo's markdown docs use straight ASCII apostrophes.
    Remediation: Replace ’ with ' at docs/code.md lines 53, 54, 404 and 429.

  • [pattern-inconsistency] scripts/post-code.src.sh:41 — CODE_JIRA_PR_READY_TRANSITION (read at line 595) is missing from the header's Optional environment variables: list (lines 40-55), whereas scripts/pre-code-jira.src.sh lists CODE_JIRA_STARTED_TRANSITION in its header (lines 29-30).
    Remediation: Add CODE_JIRA_PR_READY_TRANSITION to that header in scripts/post-code.src.sh, then run make script-build to regenerate scripts/post-code.sh.


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[bot]

This comment was marked as outdated.

Redact Jira credentials in Bash before external log sanitizers, preserve
started-transition diagnostics, and log skipped PR-ready transitions.
Cover hostile PATH utilities and literal credential patterns in tests,
update environment documentation, and regenerate script bundles.

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:33 PM UTC · Completed 7:43 PM UTC

Commit: b7cfba2 · View workflow run →

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

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 13, 2026 19:43

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Nov 13, 2026
Comment thread docs/code.md Resolved
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:30 AM UTC · Completed 12:39 AM UTC

Commit: cabaabe · View workflow run →

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

@shairevivo

Copy link
Copy Markdown
Contributor

Read this as the implementation of the agent-stage half of Jira status sync — the two hooks it covers are the ones I would otherwise have built twice. Two notes, neither asking for scope here.

1. Merged → done is unowned, and it is the one I am tracking. Your scope line ("merged-PR transitions remain out of scope") is right for a harness hook: nothing runs at merge. I filed fullsend-ai/fullsend#9518 for just that gap — one managed workflow on pull_request_target, converged by repos install, config-driven transition name and resolution because the names vary per project. I narrowed that issue down to this plus the point below after seeing this PR.

2. Issue-type gating probably belongs at the transition layer, not in these scripts. A team rolling this out wants Bug first and other types later. If the predicate lives in post-code.sh / pre-code-jira.sh, the triage close path and the merge hook each grow a copy. A flag on the shared command — fullsend issues transition --if-issue-type Bug,Story, matching issuetype.name or id, omitted meaning today's behaviour — makes every caller inherit it, and these scripts would only need to pass it through. Filed as an open question in #9518 rather than a request here.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 11:05 AM UTC · Ended 11:14 AM UTC

Commit: 3229cac · View workflow run →

@shairevivo

Copy link
Copy Markdown
Contributor

/ok-to-test 3229cac

@github-actions

Copy link
Copy Markdown

Functional and behaviour tests authorized for 3229cac519b88a4a315c9e00222fba4c5b7fb583 (run). A new push needs a new /ok-to-test <sha>.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot removed the requires-manual-review Review requires human judgment label Nov 16, 2026
@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:05 AM UTC · Completed 11:14 AM UTC

Commit: 3229cac · View workflow run →

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

@ascerra

ascerra commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Not asking for a change here. I filed fullsend-ai/fullsend#9536 so that fullsend issues transition can find the in-progress status from Jira's status categories. Once that ships, CODE_JIRA_STARTED_TRANSITION could become an on or off setting that calls --state started, and no one would need to keep a transition name in a derived harness. A review status can't be found that way, so CODE_JIRA_PR_READY_TRANSITION would keep taking a name.

@ralphbean

Copy link
Copy Markdown
Member

/fs-fix address only the secret-exposure finding in scripts/post-code.src.sh

Comment thread scripts/pre-code-jira.src.sh Resolved
The credential re-exec passes -x to its own child, so the child re-reads
the token from the stash FD and then expanded it as arguments to
jira_auth_select and the stage-comment jira_auth_fullsend call. The
PR-ready transition call suspended tracing; the stage-comment pair did
not, so token mode traced both the token and the email.

post_jira_stage_update now suspends xtrace for the whole call and
restores the caller's tracing state on every exit path. The ::add-mask::
pair moves to directly after the credential re-exec, so no expansion of
PUSH_TOKEN can reach a traced line before the runner knows to redact it.
pre-code-jira already guarded its one CLI call; it now records the
invariant.

Adds a token-mode xtrace test asserting neither the token nor the email
appears in the traced output, and corrects two comments that claimed
SHELLOPTS survives the re-exec - bash does not export it, which is why
the flag is passed explicitly.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Shai Revivo <srevivo@redhat.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:35 PM UTC · Completed 2:44 PM UTC

Commit: 18c0b1d · View workflow run →

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

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 16, 2026 14:43

Superseded by updated review

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Nov 16, 2026
@shairevivo

Copy link
Copy Markdown
Contributor

/fs-fix Always-on pre-code credential re-exec ships with mock-only validation

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:05 PM UTC · Completed 11:12 PM UTC

Commit: f0d8db8 · View workflow run →

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

@shairevivo

Copy link
Copy Markdown
Contributor

/ok-to-test f0d8db8

@github-actions

Copy link
Copy Markdown

Functional and behaviour tests authorized for f0d8db817ffd926f765bc74bbb1f150d8082d8b1 (run). A new push needs a new /ok-to-test <sha>.

1 similar comment
@github-actions

Copy link
Copy Markdown

Functional and behaviour tests authorized for f0d8db817ffd926f765bc74bbb1f150d8082d8b1 (run). A new push needs a new /ok-to-test <sha>.

@shairevivo

Copy link
Copy Markdown
Contributor

Note from #9536 — no action needed on this PR.

That issue adds fullsend issues transition --state started, resolved from Jira's status categories: it takes the issue's indeterminate move, prefers In Progress when several fit, and does nothing when the issue is already in progress or done.

If it lands, CODE_JIRA_STARTED_TRANSITION can default to started instead of a per-project name, and gets idempotency for free on re-runs. CODE_JIRA_PR_READY_TRANSITION is a separate case: if it targets the same In Progress status it can also use started (and no-op when the start already moved the issue), but if it targets a distinct review status inside the indeterminate category, that's exactly the case #9536 leaves as an explicit name.

Nothing here blocks merging this PR as-is; the name-free default can follow.

@shairevivo

Copy link
Copy Markdown
Contributor

Not asking for a change here. I filed fullsend-ai/fullsend#9536 so that fullsend issues transition can find the in-progress status from Jira's status categories. Once that ships, CODE_JIRA_STARTED_TRANSITION could become an on or off setting that calls --state started, and no one would need to keep a transition name in a derived harness. A review status can't be found that way, so CODE_JIRA_PR_READY_TRANSITION would keep taking a name.

@ascerra i noted this in the ADR, makes it smoother! thanks!

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:01 AM UTC · Completed 10:09 AM UTC

Commit: 8760553 · View workflow run →

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

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Validated at 8760553: set +x guards cover every saved token/email use in post-code and pre-code-jira; the token-mode xtrace tests pass, a traced token-mode run with a failing transition shows neither token nor email, and removing the guards makes the tests fail. Requires Fullsend v0.56.1+ (#9437); bundles current.

@waynesun09

Copy link
Copy Markdown
Member

/ok-to-test 8760553

@github-actions

Copy link
Copy Markdown

Functional and behaviour tests authorized for 87605539ad8cd91dd39ed5f97ef54c6247003faf (run). A new push needs a new /ok-to-test <sha>.

@waynesun09
waynesun09 added this pull request to the merge queue Nov 17, 2026
Merged via the queue into fullsend-ai:main with commit 22ab92e Nov 17, 2026
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ok-to-test requires-manual-review Review requires human judgment risk/elevated PR risk: elevated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants