Skip to content

chore: limit Jira run artifacts to metadata and re-pin Jira poll caller to fullsend v0.56.0 - #89

Merged
shairevivo merged 2 commits into
mainfrom
shairevivo-patch-1
Nov 14, 2026
Merged

shairevivo merged 2 commits into
mainfrom
shairevivo-patch-1

Conversation

@shairevivo

@shairevivo shairevivo commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Keeps Jira issue content out of run artifacts on this public repo, and finishes the v0.56.0 re-pin for the Jira poll path.

What changes

.fullsend/config.yaml — adds artifacts.by_source.jira: metadata. Jira-sourced runs then upload only metrics.json, eval-measurements.jsonl and a content-stripped run-telemetry.jsonl. At the default all, the artifact holds the run conversation, which quotes the Jira issue; on a public repo any signed-in user can download it. metadata keeps costs, counts and traces.

.github/workflows/fullsend-poll-jira.yml — re-pins reusable-poll-jira.yml and reusable-dispatch.yml from 87e94fb (v0.55.0) to b2945ba (v0.56.0), and drops the JIRA_TOKEN / JIRA_USER_EMAIL secret forwards.

Why the re-pin belongs in this PR

artifacts does not exist in the v0.55.0 config schema. At 87e94fb, perRepoConfig (internal/config/config.go) has no artifacts field and unmarshalPerRepo decodes with non-strict yaml.Unmarshal, so the key is dropped without error — the limit would look enforced while doing nothing. internal/config/artifacts.go first appears at v0.56.0.

JIRA_TOKEN and JIRA_USER_EMAIL are retired upstream: v0.56.0's reusable workflows no longer read them and keep the names only as ignored inputs for one release. Removing the forwards narrows what dispatch receives and fails closed; the FULLSEND_JIRA_* forwards are unchanged.

The workflow file was regenerated from the v0.56.0 scaffold (internal/scaffold/fullsend-repo/templates/jira-poll-per-repo.yaml) rather than hand-patched. The rendered output matches this file exactly apart from the intentional off-:00 cron offset, which is preserved.

Depends on #90

#90 carries the other two stale pins, fullsend.yaml and prioritize.yml. The artifact level applies to dispatched runs once that lands, so merge #90 first.

Validation

  • DCO — signed off; check green.
  • fullsend lint --strict — config and the triage harness resolve. Three warnings, all pre-existing and unrelated to this PR: env.sandbox coexisting with a host_files entry, and two GITHUB_ISSUE_URL deprecations (the harness keeps that var deliberately for the reusable prioritize workflow, which does not export FULLSEND_WORK_ITEM_URL yet).
  • Workflow content — diffed against the rendered v0.56.0 template; only the cron offset differs.
  • To confirm on the first Jira run — gh run download <run-id> -n fullsend-triage should contain only metrics/telemetry files, with no conversation.

References

🤖 Generated with Claude Code

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Configure Jira metadata artifacts in Fullsend

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Map Jira artifacts to metadata in the repository’s Fullsend configuration.
High-Level Assessment

A repository-local source mapping is the direct approach for this configuration change. Changing a shared default would affect other repositories unnecessarily.

Files changed (1) +3 / -0

Other (1) +3 / -0
config.yamlMap Jira artifacts to metadata +3/-0

Map Jira artifacts to metadata

• Adds an 'artifacts.by_source' section that maps 'jira' to 'metadata'. The existing tracker and inference settings are unchanged.

.fullsend/config.yaml

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Informational

1. Jira-metadata limit misses GitHub-started runs 🐞 Bug ⛨ Security
Description
The new by_source: jira: metadata entry only tightens artifacts for runs whose normalized event
reports the jira source, so runs started from GitHub issues, pull requests or comments fall back
to the default all level. Those runs can still upload full output/ content, including any Jira
text the agent read, which the PR's intent of keeping Jira metadata-only does not cover.
Code

.fullsend/config.yaml[R30-31]

+artifacts:
+    by_source:
Relevance

●● Moderate

No close precedent on artifacts config. Security-scope findings in this repo were mostly accepted,
but this is a semantic config-scope change with no direct history.

PR-#4

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR only sets a source-scoped level. Per the fullsend docs, the github source defaults to
all, so Jira-derived content can still be uploaded from runs that were not started in Jira. If the
intent is to keep Jira text out of artifacts, artifacts.content: metadata (or a stricter level) is
the documented mechanism for that.

.fullsend/config.yaml[30-32]
🌐 by_source applies only to runs started from one source; a run started from a GitHub issue uses the github level even if its harness gives the agent Jira access, and a custom agent reading a private system is not covered by by_source. The docs recommend artifacts.content for repository-wide protection.

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 PR adds `artifacts.by_source.jira: metadata`, which only affects runs started from Jira. Runs started from GitHub, or custom agents that read Jira, still use the default `all` artifact level.

## Fix Focus Areas
- .fullsend/config.yaml[30-32]

## Recommended Fix
Confirm the intent. If Jira content must never be uploaded regardless of run source, add `artifacts: content: metadata` at the top level of `.fullsend/config.yaml` (keeping `by_source.jira` is harmless, since a run gets the stricter level). Otherwise, document in the PR description that only Jira-started runs are intended to be restricted.

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

Dismiss ↗ | View ↗


Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Web pages:
  +2 more
✅ Cross-repo context — repo relationships
Review mode: Auto: 🚀 Fast: Localized configuration addition with limited, understandable behavioral impact.

Grey Divider

Tip of the day
💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread .fullsend/config.yaml Resolved
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 6:59 AM UTC · Completed 7:04 AM UTC

Commit: 96a9f9d · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

Add artifacts configuration for Jira metadata.

Signed-off-by: Shai Revivo <98468006+shairevivo@users.noreply.github.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

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

Commit: 12a36d8 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.76

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Nov 14, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Score increased from 1 to 2 since the prior assessment because the PR now includes .github/workflows/fullsend-poll-jira.yml, which introduced a protected path (PROTECTED_PATH_COUNT=1, sub-score 3) and CI_WORKFLOW_CHANGED=true (sub-score 4), raising the Tier 1 composite to 1.75; Tier 2 shows modest but recent churn (5-6 commits in 30 days) on both files, yielding a weighted composite of 1.68 which rounds to moderate.

Previous run

Risk Assessment: low (1/5)

Details

Single config-only file change (3 lines, small blast radius) with no protected paths, security-sensitive files, CI changes, or dependency modifications; Tier 2 shows modest churn and two fix/revert commits on the file but only one author, keeping the weighted composite at 1.24 which rounds to low.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

High

  • [protected-path] .github/workflows/fullsend-poll-jira.yml — The PR modifies a protected governance/infrastructure path under .github/. There is no linked issue, and the PR description ("Add artifacts configuration for Jira metadata.") does not explain the workflow change. That change re-pins both reusable workflows from v0.55.0 to v0.56.0 and removes the JIRA_TOKEN/JIRA_USER_EMAIL secret forwards; the reason appears only in commit b5d33cb. Protected-path changes always require human approval.
    Remediation: Link an issue, or update the PR description to justify the re-pin and the secret-forward removal. A human maintainer must approve the protected-path change.

Medium / Low / Info

  • [missing-authorization] .github/workflows/fullsend-poll-jira.yml:75 — The PR title and body cover only the artifacts config addition. The second commit also re-pins the reusable workflows and drops the legacy Jira secret forwards. The reason is given only in the commit message, and no issue is linked. The removal fails closed and does not widen access.
    Remediation: Update the PR title and body to mention the v0.56.0 re-pin and the legacy-secret removal, and link the v0.56.0 release notes or a tracking issue.
  • [workflow-permission] .github/workflows/fullsend-poll-jira.yml:57 — Permission blocks are unchanged, but the upstream code running under the dispatch job's write-scoped tokens, OIDC token and secrets changes from 87e94fb to b2945ba. Tag v0.56.0 in fullsend-ai/fullsend dereferences to b2945ba, so the pin comment is accurate, and the same pin is already used by the repo's other fullsend callers. This is noted for awareness only.
  • [permission-reduction] .github/workflows/fullsend-poll-jira.yml — The legacy JIRA_TOKEN/JIRA_USER_EMAIL secrets are no longer forwarded to reusable-dispatch.yml. Upstream v0.56.0 documents them as ignored and retired; the FULLSEND_JIRA_* forwards remain. Passing fewer secrets reduces exposure.

Earlier findings

  • .fullsend/config.yaml:30 — api-contract — resolved by change: the poll caller is re-pinned to fullsend v0.56.0 (b2945ba), which supports artifacts.by_source. v0.55.0 did not.
  • .fullsend/config.yaml:32 — pattern-inconsistency — resolved by change: the trailing whitespace after jira: metadata was removed in b5d33cb.

Labels: PR modifies a GitHub Actions workflow (reusable workflow re-pin and secret forwards).


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

1 finding(s) below the low severity threshold were not posted.

Previous run

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

Review

Findings

Medium

  • [api-contract] .fullsend/config.yaml:30: The new artifacts.by_source.jira: metadata block isn't in the config schema of the fullsend version this repo is pinned to, so it does nothing at runtime. All fullsend reusable workflows are pinned to 87e94fba... (# v0.55.0): .github/workflows/fullsend.yaml:47, fullsend-poll-jira.yml:37,57, and prioritize.yml:39. At that commit, perRepoConfig (internal/config/config.go) has no artifacts field, and unmarshalPerRepo decodes with non-strict yaml.Unmarshal, so the key is dropped with no error. internal/config/artifacts.go (by_source support) first exists at v0.56.0. The intended limit on Jira artifact content fails silently, while the file looks as if it is enforced.
    Remediation: Upgrade the fullsend installation to v0.56.0 or later before this change, or in the same PR. This re-pins the reusable-workflow SHAs. Then confirm that a Jira-dispatched run applies the metadata artifact level. If you can't upgrade now, hold this change.

Low

  • [pattern-inconsistency] .fullsend/config.yaml:32: The line jira: metadata ends with trailing whitespace. No other line in the file has any.
    Remediation: Remove the trailing spaces after metadata.

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.

Regenerate the managed Jira poll caller against the v0.56.0 scaffold: bump the
reusable-poll-jira and reusable-dispatch pins from v0.55.0, and drop the legacy
JIRA_TOKEN and JIRA_USER_EMAIL secret forwards that v0.56 no longer reads.

Also strip the trailing whitespace after artifacts.by_source.jira.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Shai Revivo <98468006+shairevivo@users.noreply.github.com>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:26 AM UTC · Completed 7:37 AM UTC

Commit: b5d33cb · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.86

@fullsend-ai-review fullsend-ai-review Bot added risk/moderate PR risk: moderate and removed risk/low PR risk: low labels Nov 14, 2026

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.

@fullsend-ai-review fullsend-ai-review Bot added the github_actions Pull requests that update GitHub Actions code label Nov 14, 2026
@shairevivo shairevivo changed the title Update config.yaml to include artifacts section chore: limit Jira run artifacts to metadata and re-pin Jira poll caller to fullsend v0.56.0 Nov 14, 2026
@shairevivo
shairevivo merged commit af89d67 into main Nov 14, 2026
54 checks passed
@shairevivo
shairevivo deleted the shairevivo-patch-1 branch November 14, 2026 09:29
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 9:30 AM UTC · Completed 9:54 AM UTC

Commit: b5d33cb · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $8.61

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #89, Jira artifact limit and v0.56.0 re-pin of the Jira poll caller

Overall, the review agent did well. This was a 5-line change written by a human. The fullsend review agent reviewed it twice (run 43569354060, $2.76; run 43571052349, $3.86).

What happened at merge: The author changed the PR description at 07:37 to answer round 2, then merged at 09:29. The bot's CHANGES_REQUESTED was still standing and no human had approved. Editing a description doesn't trigger a new review, and the branch ruleset doesn't enforce the bot's verdict. Both gaps are already tracked: fullsend-ai/fullsend#7443 (re-review when the description is edited) and fullsend-ai/agents#1449 / fullsend-ai/fullsend#1201 (making the verdict enforceable). This PR is another example for them.

Cost: about $6.60 for a 5-line diff.

One proposal: stop review sub-agents from trying to fetch pinned upstream files from raw.githubusercontent.com. The sandbox blocks it, and it happened in 4 of 9 sampled review runs on this repo, sometimes leaving upstream claims unchecked.

Minor observations, not filed:

  • review-findings-v2 leaves out protected-path findings on purpose (agents PR #1232), but no doc says so. Round 2's metadata therefore says request-changes while its worst open finding is low.
  • Round 1's advice to re-pin three workflows was already out of date when it posted, because chore: initialize fullsend per-repo installation #90 merged during the run.

Agents repo, taken from the run logs: fullsend-ai/agents. Rounds 1 and 2 ran at @3b40ac7 and @7c6f06a respectively.

Proposals skipped (target repo not allowed)

File manually or update tracker.github.allowed_targets in config.yaml:

  • pr-review: route pinned upstream file reads through gh api contents?ref= instead of raw.githubusercontent.com, which the sandbox blocks (fullsend-ai/agents)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant