Skip to content

refactor(#2282): remove dead --keep-history help probe - #2285

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/2282-remove-keep-history-probe
Open

fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/2282-remove-keep-history-probe

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Removes the --keep-history help probe from the retro and link-check scripts. Since fullsend-ai/fullsend#9399 every agent result is posted as a new comment. fullsend-ai/fullsend#9986 then made --keep-history a hidden no-op that fullsend issues post-comment --help no longer lists, so the probe can never match and never passes anything.

  • scripts/lib/jira-retro-ops.lib.sh: removed _RETRO_JIRA_KEEP_HISTORY_ARGS, _retro_jira_keep_history_args and its out-of-date comment (it still called #9399 "still open"). Also removed the args expansion from the Jira post-comment call.
  • examples/link-check/scripts/post-link-check.sh: removed the keep_history_re / keep_history_args probe, its comment, and the args in the --only-if-exists post. Also removed the comment that pointed to the old explanation ("see --keep-history below").
  • scripts/post-retro-test.sh: removed the post-comment --help mock branch (nothing calls it now) and test case 27, then renumbered the two tests after it. Test 9 still checks that Jira comments get posted.
  • scripts/example-link-check-test.sh: removed the --keep-history lines from the help fixtures and the stubs that only tested --keep-history detection (no-keep-history-cli, prose-cli, uppercase-deprecated-cli). Also removed the stub's deprecation warning and the no-deprecation-warning check. The current CLI and the pre-#9399 edit-in-place CLI still have to receive --only-if-exists --result -.
  • scripts/pre-retro.sh, scripts/post-retro.sh: regenerated from the sources with scripts/bundle-sh.sh.

Testing

  • grep -rn -i 'keep.history' scripts/ examples/ returns nothing.
  • A bash copy of make check-bundle (rebuild every BUNDLE_SRCS entry and compare it with the committed file) shows no stale bundles. make itself can't exec /bin/sh in the sandbox, so the bundler was run directly.
  • scripts/pre-retro-test.sh: all tests pass.
  • scripts/post-retro-test.sh and scripts/example-link-check-test.sh: the only failures are the ones that also fail on unmodified main in this sandbox (141 and 1). They come from the environment: gh mock calls, and the yq-based runner-env-has-gh-token check. The drop in PASS counts matches the removed cases exactly.
  • pre-commit couldn't fetch its hook repos (HTTP 403). I ran the configured hooks directly at their pinned versions and they all passed: pre-commit-hooks 6.0.0 fixers/checks, shellcheck-py 0.10.0.1 with the repo args, gitleaks, and lint-release-cases.

🤖 Generated with Claude Code


Closes #2282

Post-script verification

  • Branch is not main/master (agent/2282-remove-keep-history-probe)
  • Secret scan passed (gitleaks — 4dc9cc67f576896203c8e52546c76d1fe88f751f..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

fullsend-ai/fullsend#9399 posts every agent result as a new comment,
and fullsend-ai/fullsend#9986 made --keep-history a hidden no-op that
no longer appears in 'fullsend issues post-comment --help'. The probe
the retro and link-check scripts ran against that help output can no
longer match, so it never passes anything.

- scripts/lib/jira-retro-ops.lib.sh: drop
  _retro_jira_keep_history_args, its stale comment (which still
  called #9399 open) and the args array in the post-comment call.
- examples/link-check/scripts/post-link-check.sh: drop the
  keep_history probe, its comment and the args in the post call.
- scripts/post-retro-test.sh: drop the post-comment --help mock and
  the keep-history test case; Jira comment posting stays covered by
  test 9.
- scripts/example-link-check-test.sh: drop the --keep-history help
  fixtures, the stubs that only exercised its detection, and the
  deprecation-warning check.
- scripts/pre-retro.sh, scripts/post-retro.sh: regenerated with
  scripts/bundle-sh.sh (make cannot exec /bin/sh in the sandbox).

Note: pre-commit could not fetch hook repos (HTTP 403); the
configured hooks were run directly at their pinned versions and
passed. post-retro-test.sh (141) and example-link-check-test.sh (1)
show the same failures on unmodified main in this sandbox.

Closes #2282

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner December 3, 2026 21:31
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Dec 3, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:34 PM UTC · Completed 9:41 PM UTC

Commit: cc5b7a6 · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Dec 3, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Dead-code removal by a bot author with well-defined issue scope and test coverage, balanced against protected script paths and recent commit churn in the retro scripts.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] scripts/lib/jira-retro-ops.lib.sh — This PR modifies files under protected governance/infrastructure paths (scripts/): scripts/lib/jira-retro-ops.lib.sh, scripts/post-retro.sh, scripts/pre-retro.sh, scripts/post-retro-test.sh, scripts/example-link-check-test.sh. The PR links Remove the dead --keep-history help probe from the retro and link-check scripts #2282 and explains the rationale (removing the dead --keep-history help probe), but human approval is always required for protected-path changes, regardless of context. No other findings were raised.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Dec 3, 2026

This branch has not been deployed

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

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the dead --keep-history help probe from the retro and link-check scripts

1 participant